Skip to content
Message Type Ai

$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: $messageType


Example:

Here’s how $messageType might be used in a custom command:

!!exec $messageType Default

::: tip 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:
Tags: