diff --git a/cogs/admin.py b/cogs/admin.py index a618893..5634642 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -964,6 +964,7 @@ class Administration: # Then add their permissions in one field embed.add_field(name="Allowed permissions", value="\n".join(perms)) await ctx.send(embed=embed) + return 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__: await ctx.send("You need to own the bot to run this command") return - await ctx.send(member - "You are required to have `manage_guild` permissions to run `{}`".format(cmd.qualified_name)) + await ctx.send("You are required to have `manage_guild` permissions to run `{}`".format(cmd.qualified_name)) return # Perms will be an attribute if custom_perms is found no matter what, so no need to check this