$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 a built-in cooldown to help prevent excessive usage.

PropertyValue
⏱️ Duration9 seconds
🆔 Tracked ByMessage ID
🌐 ScopeMessageupdate

Functions with the same Scope share cooldowns based on the same Tracked By value.

💎 Tier 3+ servers bypass this cooldown. See Premium Perksopen in new window.