$messageType
$messageType will return the type of a given message.
Usage
$messageType[messageID?;channelID?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| messageID? | number | ID of the message. | false |
| channelID? | number | ID 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:
1client.command({2 name: "messageType",3 code: `4 $messageType[$messageID;$channelID]5 `6});