Exemple #1
0
 async def remove(self, ctx:commands.Context, *, role:discord.Role):
     await remove_item(ctx, role, 'self')
     Selfroles.validate_self_roles(self.bot, ctx.guild)
     self.bot.dispatch("self_roles_update", ctx.guild.id)
Exemple #2
0
 async def add(self, ctx:commands.Context, *, role:discord.Role):
     await add_item(ctx, role, 'self', config_section="ROLES")
     Selfroles.validate_self_roles(self.bot, ctx.guild)
     self.bot.dispatch("self_roles_update", ctx.guild.id)