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

Printing every parameter to test result

This commit is contained in:
Phxntxm 2016-07-15 12:04:21 -05:00
parent f6b6240568
commit 1aeb69e1eb

View file

@ -93,6 +93,8 @@ class Mod:
@commands.has_permissions(manage_server=True)
async def add_perms(self, ctx, command: str, permissions: str):
try:
await self.bot.say("Command is: `{}`\nPermissions is: `{}`\n Type of command is `{}`\n Type of permissions is `{}`".format(command,permissions,type(command),type(permissions)))
return
for checks in self.bot.commands.get(command).checks:
if "isOwner" == checks.__name__:
await self.bot.say("This command cannot have custom permissions setup!")