Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

add self role with discord bot python

@async def on_message(message):
     if message.content == "give me admin"
           role = discord.utils.get(server.roles, name="Admin")
           await client.add_roles(message.author.id, role)
 
PREVIOUS NEXT
Tagged: #add #role #discord #bot #python
ADD COMMENT
Topic
Name
4+3 =