Skip to content

Commit 1995349

Browse files
committed
Add perm level 0 instead of NoneType
1 parent 99379d0 commit 1995349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cogs/utility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async def format_cog_help(self, ctx, cog):
3939
prefix = self.bot.prefix
4040

4141
def perms_required(cmd):
42-
return next(getattr(c, 'permission_level', None) for c in cmd.checks)
42+
return next(getattr(c, 'permission_level', 0) for c in cmd.checks)
4343

4444
fmts = ['']
4545
for cmd in sorted(self.bot.commands,

0 commit comments

Comments
 (0)