1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-02 05:02:39 +00:00

Fixed username command referencing Client instead of ClientUser

This commit is contained in:
Myned 2017-11-20 06:36:24 -05:00
parent 3180a9dc60
commit e2c770e620

View file

@ -87,7 +87,7 @@ class Bot:
@cmds.is_owner() @cmds.is_owner()
async def change_username(self, ctx, *, username=None): async def change_username(self, ctx, *, username=None):
if username: if username:
await self.bot.edit(username=username) await self.bot.user.edit(username=username)
await ctx.send(f'**Username changed to** `{username}`') await ctx.send(f'**Username changed to** `{username}`')
else: else:
await ctx.send('**Invalid string**', delete_after=7) await ctx.send('**Invalid string**', delete_after=7)