Printing the command in permissions checking, as it seems to be failing.
This commit is contained in:
parent
ad6fdac4d1
commit
d544e71104
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,6 @@ class Mod:
|
||||||
if command is None or len(command) == 0:
|
if command is None or len(command) == 0:
|
||||||
await self.bot.say("Valid permissions are: ```{}```".format("\n".join("{}".format(i) for i in valid_perms)))
|
await self.bot.say("Valid permissions are: ```{}```".format("\n".join("{}".format(i) for i in valid_perms)))
|
||||||
return
|
return
|
||||||
command = " ".join(command)
|
|
||||||
|
|
||||||
custom_perms = config.getContent('custom_permissions') or {}
|
custom_perms = config.getContent('custom_permissions') or {}
|
||||||
server_perms = custom_perms.get(ctx.message.server.id)
|
server_perms = custom_perms.get(ctx.message.server.id)
|
||||||
|
@ -74,6 +73,7 @@ class Mod:
|
||||||
return
|
return
|
||||||
|
|
||||||
command_perms = server_perms.get(command)
|
command_perms = server_perms.get(command)
|
||||||
|
await self.bot.say("`{}` is type `{}`".format(command,type(command)))
|
||||||
if command_perms is None:
|
if command_perms is None:
|
||||||
await self.bot.say("That command has no custom permissions setup on it!")
|
await self.bot.say("That command has no custom permissions setup on it!")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue