Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make a discord bot delete messages python

import discord 
 
@client.event 
async def on_message(message):
  	response = await message.channel.send("Hello") 
    # Deletes the message the user sent
	await message.delete() 
    # Deletes the responding message
	await response.delete() 
 
PREVIOUS NEXT
Tagged: #discord #bot #delete #messages #python
ADD COMMENT
Topic
Name
4+3 =