Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reaction role discord.py

@bot.command(pass_context=True)
async def giverole(ctx, user: discord.Member, role: discord.Role):
    await user.add_roles(role)
    await ctx.send(f"hey {ctx.author.name}, {user.name} has been giving a role called: {role.name}")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reaction #role
ADD COMMENT
Topic
Name
1+4 =