From e2c770e620e4899111daaac17ea7c8b9f7b0b2a8 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 20 Nov 2017 06:36:24 -0500 Subject: [PATCH] Fixed username command referencing Client instead of ClientUser --- src/main/cogs/owner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/cogs/owner.py b/src/main/cogs/owner.py index cdedf9a..004027c 100644 --- a/src/main/cogs/owner.py +++ b/src/main/cogs/owner.py @@ -87,7 +87,7 @@ class Bot: @cmds.is_owner() async def change_username(self, ctx, *, username=None): if username: - await self.bot.edit(username=username) + await self.bot.user.edit(username=username) await ctx.send(f'**Username changed to** `{username}`') else: await ctx.send('**Invalid string**', delete_after=7)