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

Member04/04/2025
!!exec $messageType
Custom Command Bot 04/04/2025
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