a few fixes

This commit is contained in:
SeaswimmerTheFsh 2023-06-20 01:13:32 -04:00
parent 74af3fb5d1
commit 1258062c4c

View file

@ -65,10 +65,9 @@ class Client(commands.CommandsClient):
await Client.get_prefix(message, new_prefix) await Client.get_prefix(message, new_prefix)
@commands.command() @commands.command()
@commands.is_bot_owner()
async def prefix(self, ctx: commands.Context, new_prefix: str = None): async def prefix(self, ctx: commands.Context, new_prefix: str = None):
# This command sets the bot's prefix. CURRENTLY PARTIALLY BROKEN # This command sets the bot's prefix. CURRENTLY BROKEN
if new_prefix is not None and bool(commands.is_bot_owner): 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) await Client.prefix_change(self=self, message=ctx.message, new_prefix=new_prefix)
else: else:
await ctx.message.reply(f"The prefix is currently set to `{prefix}`.") await ctx.message.reply(f"The prefix is currently set to `{prefix}`.")