Hello I am programming a bot in discord.py, I would like to know if there is a way to delete a message of a command sent by a user for example, the user uses the command .help and the bot deletes the message .help and gives an answer, do you know how to do it?
import os
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix = '.', intents = intents)
@client.command(pass_context=True)
async def myCmd(message):
#here the code to clear the message
await message.send('Something')