From d43c854584cadf4e42e10e2ab34d596840e40fcc Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 8 Mar 2017 13:25:52 -0600 Subject: [PATCH] Corrected an issue with changing the status/name --- cogs/owner.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cogs/owner.py b/cogs/owner.py index 9eaf326..5041801 100644 --- a/cogs/owner.py +++ b/cogs/owner.py @@ -73,17 +73,17 @@ class Owner: @commands.command() @commands.check(utils.is_owner) - async def name(self, ctx, newNick: str): + async def name(self, ctx, new_nick: str): """Changes the bot's name""" - await self.bot.edit_profile(username=newNick) - await ctx.send('Changed username to ' + newNick) + await self.bot.user.edit(username=new_nick) + await ctx.send('Changed username to ' + new_nick) @commands.command() @commands.check(utils.is_owner) async def status(self, ctx, *, status: str): """Changes the bot's 'playing' status""" - await self.bot.change_status(discord.Game(name=status, type=0)) - await ctx.send("Just changed my status to '{0}'!".format(status)) + await self.bot.change_presence(game=discord.Game(name=status, type=0)) + await ctx.send("Just changed my status to '{}'!".format(status)) @commands.command() @commands.check(utils.is_owner)