Skip to content

$messageType

$messageType will return the type of a given message.

Usage

$messageType[messageID?;channelID?]

Parameters

FieldTypeDescriptionRequired
messageID?numberID of the message.false
channelID?numberID of the channel where the message is located in.false

Example(s)

This will return the message type of the message which executed the command:

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