From 3b8be1d7a1db982873be57c2c382449fbcb8927d Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:36:13 -0400 Subject: [PATCH] prefix command fix [p]prefix now correctly checks if you're the bot's owner --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index d155ae9..0e02e9b 100644 --- a/main.py +++ b/main.py @@ -68,7 +68,7 @@ class Client(commands.CommandsClient): @commands.command() async def prefix(self, ctx: commands.Context, new_prefix: str = None): # This command sets the bot's prefix. CURRENTLY BROKEN - if new_prefix is not None and ctx.author.id == Client.user.owner_id: + if new_prefix is not None and ctx.author.id == ctx.client.user.owner_id: await Client.prefix_change(self=self, message=ctx.message, new_prefix=new_prefix) else: await ctx.message.reply(f"The prefix is currently set to `{prefix}`.")