Custom Command
FunctionsMessage Functions

$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: 10 seconds
  • Tracked By: Message ID
  • Type: messageupdate

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

On this page