We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99379d0 commit 1995349Copy full SHA for 1995349
cogs/utility.py
@@ -39,7 +39,7 @@ async def format_cog_help(self, ctx, cog):
39
prefix = self.bot.prefix
40
41
def perms_required(cmd):
42
- return next(getattr(c, 'permission_level', None) for c in cmd.checks)
+ return next(getattr(c, 'permission_level', 0) for c in cmd.checks)
43
44
fmts = ['']
45
for cmd in sorted(self.bot.commands,
0 commit comments