$deleteMessage
Deletes a specified message from a channel.
Usage: $deleteMessage[channelID;messageID]
channelID: The ID of the channel where the message is located.messageID: The ID of the message to delete.
Example:
$deleteMessage[$channelID;$messageID]
This example will delete the message with the ID specified in $messageID from the channel with the ID specified in $channelID. Make sure your bot has the necessary permissions to delete messages in the specified channel.
Related Functions
$deletecommand - Use this function to delete the message that triggered the command.
Function Difficulty: Easy
Tags: delete message Message delete delete trigger
Function Cooldown
This function has built-in cooldown. Why? Read more about cooldowns here.
- Cooldown: 9 seconds
- Tracked By: Message ID
- Type:
messageupdate
Functions with the same type share cooldowns based on the same Tracked By value.