Example #1
0
 async def slash_take(self, ctx: SlashContext, member: discord.Member, role: discord.Role):
     """take slash handler"""
     ctx.prefix = "/"
     if ctx.author.permissions_in(ctx.channel).manage_roles:
         await self.take(ctx, member, role=role)
     else:
         raise PermissionError("You do not have manage roles!")
Example #2
0
 async def slash_givemeremove(self, ctx: SlashContext, roles):
     """giveme remove slash handler"""
     ctx.prefix = "/"
     await self.remove(ctx, roles=roles)