Answers for "how to edit a role in discord.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
3

how to change role permissions in discord.py

#edit permissions of role
permissions = discord.Permissions()
permissions.update(kick_members = False)
await role.edit(reason = None, colour = discord.Colour.blue(), permissions=permissions)
Posted by: Guest on November-25-2020

Code answers related to "how to edit a role in discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language