delete last message discord.py
@client.event
async def on_message(message):
await message.delete(message)
delete last message discord.py
@client.event
async def on_message(message):
await message.delete(message)
delete message discord.py
@client.event
async def on_message(message):
await message.delete()
discord delete message
"create a variable called id"
var id
"then inside your client message statement change id -> id = message.id"
client.on('message', message => {
id = message.id
});
"inside your command type message.fetch(id).then(msg => msg.delete());"
if (message.content === !test)
message.fetch(id).then(msg => msg.delete());
}});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us