Answers for "discord.py add_roles"

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
5

on message discord py

@bot.event
async def on_message(message):
    if message.content == "pong":
        await message.channel.send('ping')
Posted by: Guest on January-12-2021
1

discord.py fetch channel

await client.fetch_channel(channelId)
Posted by: Guest on January-23-2021

Python Answers by Framework

Browse Popular Code Answers by Language