This commit is contained in:
Vivek Santayana 2021-07-26 21:21:41 +01:00
parent 89a92586ff
commit a772c06313

View File

@ -22,7 +22,7 @@ class Configuration(commands.Cog, name='Configuration Commands'):
permissions[int(gStr)] = []
permissions[int(gStr)].append(create_permission(id=conf[gStr]['owner'],id_type=SlashCommandPermissionType.USER,permission=True))
for admin in conf[gStr]['roles']['admin']: permissions[int(gStr)].append(create_permission(id=admin,id_type=SlashCommandPermissionType.ROLE,permission=True))
print(permissions)
@cog_ext.cog_subcommand(
base='config',
# subcommand_group='role',