Answers for "discord.py reactions"

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

discord.py fetch channel

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

add reaction discord.py

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

get reactions from message discord.py

#Get reactions from cached msg
cache_msg = discord.utils.get(client.cached_messages, id=msg.id)
n_players = await cache_msg.reactions[0].users().flatten()
n_players = n_players[1:]
Posted by: Guest on August-20-2021

Code answers related to "discord.py reactions"

Python Answers by Framework

Browse Popular Code Answers by Language