Skip to content

Commit

Permalink
Fix for discord.py breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
imayhaveborkedit authored Aug 5, 2016
1 parent 729ce8c commit 109fac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion musicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,7 @@ async def cmd_setnick(self, server, channel, leftover_args, nick):
Changes the bot's nickname.
"""

if not channel.permissions_for(server.me).change_nicknames:
if not channel.permissions_for(server.me).change_nickname:
raise exceptions.CommandError("Unable to change nickname: no permission.")

nick = ' '.join([nick, *leftover_args])
Expand Down

0 comments on commit 109fac5

Please sign in to comment.