From 9b4581a7813a94ed9b059ec8b1ef1670ff416bf8 Mon Sep 17 00:00:00 2001 From: Will Date: Sat, 17 Jun 2017 11:31:44 -0400 Subject: [PATCH] [Core] Fixed [p]set owner and [p]set avatar (#817) --- core/core_commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core_commands.py b/core/core_commands.py index b9a376527..8d1de8a5d 100644 --- a/core/core_commands.py +++ b/core/core_commands.py @@ -115,7 +115,7 @@ class Core: await session.close() try: - await self.bot.user.edit(avatar=data) + await ctx.bot.user.edit(avatar=data) except discord.HTTPException: await ctx.send("Failed. Remember that you can edit my avatar " "up to two times a hour. The URL must be a " @@ -272,7 +272,7 @@ class Core: else: if message.content.strip() == token: self.owner.reset_cooldown(ctx) - await self.bot.db.set("owner", ctx.author.id) + await ctx.bot.db.set("owner", ctx.author.id) ctx.bot.author_id = ctx.author.id await ctx.send("You have been set as owner.") else: