$deleteMessage

Deletes a message from a channel.

Usage

$deleteMessage[channelID;messageID]

This function has two params.

ParamDescriptionTypeRequired

channelID

The channel where the message is.

Snowflake

Yes

messageID

The message to delete.

Snowflake

Yes

Example

bot.commands.add({
  type: "basicCommand",
  name: "example",
  code: `$deleteMessage[$mentionedChannels[1];$noMentionMessage]` //Usage: !command #channel <message id>
})

Last updated