FunctionsMessage Functions
$messageType
This function returns the type of the message that triggered the command. This can be useful for creating commands that behave differently depending on how they were called.
Usage
$messageTypeExample:
Here's how $messageType might be used in a custom command:
Member
9/5/2026
!!exec $messageType
Custom Command
APP
9/5/2026
Default
Note
The $messageType function returns a specific message type. You can find a list of possible return values here. These values represent different ways a message can be sent, such as a regular text message, a system message, or an interaction response.
Function Difficulty: Easy
Tags: Type Message