From 1258062c4c760af7caf47e7333088ce901de5239 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh <102361830+SeaswimmerTheFsh@users.noreply.github.com> Date: Tue, 20 Jun 2023 01:13:32 -0400 Subject: [PATCH] a few fixes --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 88ecd6b..30c2f6f 100644 --- a/main.py +++ b/main.py @@ -65,10 +65,9 @@ class Client(commands.CommandsClient): await Client.get_prefix(message, new_prefix) @commands.command() - @commands.is_bot_owner() async def prefix(self, ctx: commands.Context, new_prefix: str = None): - # This command sets the bot's prefix. CURRENTLY PARTIALLY BROKEN - if new_prefix is not None and bool(commands.is_bot_owner): + # This command sets the bot's prefix. CURRENTLY BROKEN + if new_prefix is not None and ctx.author.id == 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}`.")