Answers for "discord.py on reaction"

9

discord.py add reaction to message

#1
message = ctx.send("text")
#2
message = channel.send("text")
#3
message = channel.fetch_message(messageid)
#add reaction to message
emoji = 'N{THUMBS UP SIGN}'
await message.add_reaction(emoji)
Posted by: Guest on September-27-2020
4

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

add reaction discord.py

await message.add_reaction(emoji)
Posted by: Guest on March-10-2021
0

discord py fetch channel by id

channel = discord.utils.get(ctx.guild.channels, name=given_name)
channel_id = channel.id
Posted by: Guest on January-29-2021

Python Answers by Framework

Browse Popular Code Answers by Language