na mensagem discórdia py
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')
Funny Falcon
@bot.event
async def on_message(message):
if message.content == "pong":
await message.channel.send('ping')
await client.fetch_channel(channelId)
channel.guild
await ctx.reply('Hello!')
@bot.event
async def on_message(message):
if isinstance(message.channel, discord.channel.DMChannel) and message.author != bot.user:
await message.channel.send('This is a DM')