Answers for "discord import utils"

1

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)
Posted by: Guest on September-07-2020
1

how to put in code to download discord py

pip install discord.py==1.3.4
Posted by: Guest on December-09-2020

Python Answers by Framework

Browse Popular Code Answers by Language