Answers for "bot that only responds to certain roles discord.py"

0

bot that only responds to certain roles discord.py

if message.content.lower().startswith('/role'):
    user = message.author

    if message.channel.is_private or discord.utils.get(user.roles, name="admin") is None:
        return

    role = discord.utils.get(user.server.roles, id="437923291047526402")
    await client.add_roles(user, role)
Posted by: Guest on June-02-2021

Code answers related to "bot that only responds to certain roles discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language