Skip to content

$deleteMessage

$deleteMessage will delete a specific message.

Usage

$deleteMessage[messageID;channelID]

Parameters

FieldTypeDescriptionRequired
messageIDnumberThe message ID of the channel which will be deleted.true
channelIDnumberThe channel ID of where the message is located in.false

Example(s)

This will send and delete the sent message after 15 seconds ( we are using $let and $get to temporary store the message ID ):

1
client.command({
2
name: "deleteMessage",
3
code: `
4
$deleteMessage[$get[id];$channelID]
5
$let[id;$sendMessage[Hello!;true]]
6
`
7
});