prefix command fix
[p]prefix now correctly checks if you're the bot's owner
This commit is contained in:
parent
0e4b934f9c
commit
3b8be1d7a1
1 changed files with 1 additions and 1 deletions
2
main.py
2
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}`.")
|
||||
|
|
Loading…
Reference in a new issue