Answers for "message content intent discord.py"

7

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
0

discord py message link

link = 'https://discordapp.com/channels/guild_id/channel_id/message_id'.split('/')
message = await self.bot.get_guild(int(link[-3])).get_channel(int(link[-2])).fetch_message(int(link[-1]))
Posted by: Guest on January-19-2021

Code answers related to "message content intent discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language