1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

I don't know how that changed

This commit is contained in:
Phxntxm 2017-08-06 16:21:36 -05:00
parent acc402297b
commit 6facd5794b

View file

@ -964,6 +964,7 @@ class Administration:
# Then add their permissions in one field # Then add their permissions in one field
embed.add_field(name="Allowed permissions", value="\n".join(perms)) embed.add_field(name="Allowed permissions", value="\n".join(perms))
await ctx.send(embed=embed) await ctx.send(embed=embed)
return
server_perms = self.bot.db.load('server_settings', key=ctx.message.guild.id, pluck='permissions') or {} server_perms = self.bot.db.load('server_settings', key=ctx.message.guild.id, pluck='permissions') or {}
@ -981,8 +982,7 @@ class Administration:
if "is_owner" in func.__qualname__: if "is_owner" in func.__qualname__:
await ctx.send("You need to own the bot to run this command") await ctx.send("You need to own the bot to run this command")
return return
await ctx.send(member await ctx.send("You are required to have `manage_guild` permissions to run `{}`".format(cmd.qualified_name))
"You are required to have `manage_guild` permissions to run `{}`".format(cmd.qualified_name))
return return
# Perms will be an attribute if custom_perms is found no matter what, so no need to check this # Perms will be an attribute if custom_perms is found no matter what, so no need to check this