forked from viveksantayana/geas-bot
Permission Hotfixes
This commit is contained in:
parent
a772c06313
commit
46fb9cf1fd
@ -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',
|
||||
@ -130,7 +130,7 @@ class Configuration(commands.Cog, name='Configuration Commands'):
|
||||
name='channels',
|
||||
description='Designate the various key channels for the Bot to interact with.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Designates the various key Bot channels for the guild.',
|
||||
guild_ids=guild_ids,
|
||||
@ -203,7 +203,7 @@ class Configuration(commands.Cog, name='Configuration Commands'):
|
||||
name='notifications',
|
||||
description='Configure monitoring and notifications to Committee for member query channels.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Configures whether the bot monitors and responds to posts in key channels.',
|
||||
guild_ids=guild_ids,
|
||||
@ -247,7 +247,7 @@ class Configuration(commands.Cog, name='Configuration Commands'):
|
||||
name='add',
|
||||
description='Add a timeslot at which the Guild will host games.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
subcommand_group_description='Manages timeslots available for games on the guild.',
|
||||
guild_ids=guild_ids,
|
||||
@ -308,7 +308,7 @@ class Configuration(commands.Cog, name='Configuration Commands'):
|
||||
name='add',
|
||||
description='Add a membership type for the Guild.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
subcommand_group_description='Manages the different categories of membership available to the Guild.',
|
||||
guild_ids=guild_ids,
|
||||
@ -379,7 +379,7 @@ class Configuration(commands.Cog, name='Configuration Commands'):
|
||||
name='restrict',
|
||||
description='Toggle membership estriction for the guild.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Configures whether the bot monitors and responds to posts in key channels.',
|
||||
guild_ids=guild_ids,
|
||||
|
@ -35,7 +35,7 @@ class EditMembership(commands.Cog, name='Edit Membership'):
|
||||
name='remove',
|
||||
description='Remove a registered membership role.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
@ -74,7 +74,7 @@ class EditMembership(commands.Cog, name='Edit Membership'):
|
||||
name='list',
|
||||
description='List the existing game memberships on the server.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
|
@ -27,7 +27,7 @@ class GameManagement(commands.Cog, name='Game Management'):
|
||||
name='delete',
|
||||
description='Deletes a game role and accompanying category, text, voice channels, and data.',
|
||||
# base_description='Commands for setting up and removing games on the Guild.',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
@ -106,7 +106,7 @@ class GameManagement(commands.Cog, name='Game Management'):
|
||||
name='modify',
|
||||
description='Edit the information of an existing game channel.',
|
||||
# base_description='Commands for setting up and removing games on the Guild.',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
@ -394,7 +394,7 @@ class GameManagement(commands.Cog, name='Game Management'):
|
||||
name='purge',
|
||||
description='Delete all games in a given timeslot.',
|
||||
# base_description='Commands for setting up and removing games on the Guild.',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
|
@ -37,7 +37,7 @@ class ManipulateTimeslots(commands.Cog, name='Manipulate Timeslots'):
|
||||
name='remove',
|
||||
description='Remove a configured game timeslot.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
@ -109,7 +109,7 @@ class ManipulateTimeslots(commands.Cog, name='Manipulate Timeslots'):
|
||||
name='modify',
|
||||
description='Modify the value of a configured gametime slot.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
@ -151,7 +151,7 @@ class ManipulateTimeslots(commands.Cog, name='Manipulate Timeslots'):
|
||||
name='list',
|
||||
description='List the existing game timeslots on the server.',
|
||||
# base_description='Commands for configuring the various parameters of the Guild',
|
||||
# base_default_permission=False,
|
||||
base_default_permission=False,
|
||||
# base_permissions=permissions,
|
||||
# subcommand_group_description='Adds a time slot available to the channel for games.',
|
||||
guild_ids=guild_ids,
|
||||
|
Loading…
Reference in New Issue
Block a user