$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.
$messageType
Usage: Example:
Here's how $messageType
might be used in a custom command:
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.