Answers for "discord.py delete own message"

5

delete message discord.py

@client.event
async def on_message(message):
    await message.delete()
Posted by: Guest on November-22-2020
0

discord.py delete own message

msg = await ctx.send("This is a message")
await msg.delete()
Posted by: Guest on July-09-2021
0

discord.py delete own message

await ctx.send("This is a message", delete_after=5) # deletes message after 5 seconds
Posted by: Guest on July-09-2021
0

discord.py delete own message

@client.command()
async def _clear(ctx,amount=1):
  await ctx.channel.purge(limit=amount+1)
Posted by: Guest on March-11-2021
5

delete message discord.py

@client.event
async def on_message(message):
    await message.delete()
Posted by: Guest on November-22-2020
0

discord.py delete own message

msg = await ctx.send("This is a message")
await msg.delete()
Posted by: Guest on July-09-2021
0

discord.py delete own message

await ctx.send("This is a message", delete_after=5) # deletes message after 5 seconds
Posted by: Guest on July-09-2021
0

discord.py delete own message

@client.command()
async def _clear(ctx,amount=1):
  await ctx.channel.purge(limit=amount+1)
Posted by: Guest on March-11-2021

Code answers related to "discord.py delete own message"

Python Answers by Framework

Browse Popular Code Answers by Language