1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Added ability to setup custom permissions on the parent of group commands

This commit is contained in:
phxntxm 2016-07-15 17:41:16 -05:00
parent 2a2aa40b7f
commit 727f7107f2

View file

@ -105,8 +105,11 @@ class Mod:
cmd = self.bot.commands.get(msg[count])
while isinstance(cmd, commands.Group):
count += 1
cmd = cmd.commands.get(msg[count])
try:
cmd = cmd.commands.get(msg[count])
except:
break
for check in cmd.checks:
if "isOwner" == check.__name__:
await self.bot.say("This command cannot have custom permissions setup!")