So I'm trying to make a self role system and I've tried many client.event stuff and it doesn't seem to work. So now I feel I need to ask for help my code now likes like this:
@client.command()
async def roles(ctx, reaction, user):
await ctx.send("React to this to get roles: \n <:regional_indicator_f:955958148718559242> - Femboy \n <:regional_indicator_n:955958148718559242> - Femboy lover \n <:regional_indicator_t:955958148718559242> - Top \n <:regional_indicator_b:955958148718559242> - Bottom")
await ctx.add_reaction('<:regional_indicator_f:955958148718559242>')
await ctx.add_reaction('<:regional_indicator_n:955958148718559242>')
await ctx.add_reaction('<:regional_indicator_t:955958148718559242>')
await ctx.add_reaction('<:regional_indicator_b:955958148718559242>')
if reaction.emoji == "<:regional_indicator_f:955958148718559242>":
Role = discord.utils.get(user.guild.roles, name="Femboy")
await client.add_roles(user, Role)
if reaction.emoji == "<:regional_indicator_n:955958148718559242>":
Role = discord.utils.get(user.guild.roles, name="Femboy lover")
await client.add_roles(user, Role)
if reaction.emoji == "<:regional_indicator_t:955958148718559242>":
Role = discord.utils.get(user.guild.roles, name="Top")
await client.add_roles(user, Role)
if reaction.emoji == "<:regional_indicator_b:955958148718559242>":
Role = discord.utils.get(user.guild.roles, name="Bottom")
await client.add_roles(user, Role)
It seems very messing but i get no errors but it doesn't send any messages when i use the command. I deeply need someone's help. Also I'm fairly new to python.