Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discord.py autorole

@client.event
async def on_raw_reaction_add(payload):
    guild = client.get_guild(id=payload.guild_id)
    roles = guild.get_role(role_id)
    await user.add_roles(roles)
 
PREVIOUS NEXT
Tagged: #autorole
ADD COMMENT
Topic
Name
2+3 =