Answers for "how to add a role to a specific discord id in disocrd py"

1

add role discord .py

member = message.author
var = discord.utils.get(message.guild.roles, name = "role name")
member.add_role(var)
Posted by: Guest on February-29-2020
1

How to create role discord.py

guild = ctx.guild
await guild.create_role(name="role name")
Posted by: Guest on July-07-2020

Code answers related to "how to add a role to a specific discord id in disocrd py"

Python Answers by Framework

Browse Popular Code Answers by Language