Skip to content

$messageExists

$messageExists will check if a specific message exists.

Usage

$messageExists[messageID;channelID?]

Parameters

FieldTypeDescriptionRequired
messageIDnumberthe id of the messagetrue
channelID?numberthe channel id where the message is locatedfalse

Example(s)

This will return false as the message doesn’t exist in the given channel:

1
client.command({
2
name: "messageExists",
3
code: `
4
$messageExists[1058998634823299143;$channelID]
5
`
6
});