Fixing errors

This commit is contained in:
Dusty.P
2018-05-21 21:50:55 -08:00
parent efc73a0119
commit 9dbcff12b4
5 changed files with 29 additions and 29 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class Capturing(list):
async def mute(bot, ctx, admin=0, member_id=None):
mute_role = bot.db_con.fetchval(f'select muted_role from guild_config where guild_id = $1', ctx.guild.id)
if mute_role:
if admin or checks.is_admin(bot, ctx):
if admin or await checks.is_admin(bot, ctx):
if ctx.guild.me.guild_permissions.manage_roles:
if member_id:
ctx.guild.get_member(member_id).edit(roles=[discord.utils.get(ctx.guild.roles, id=mute_role)])