Custom Command
FunctionsMessage Functions

$messageFlags

This function retrieves the flags associated with a message. Message flags provide additional information about the message, such as whether it's a crosspost or if it's a system message.

Usage

$messageFlags

Here's a simple example demonstrating how to use $messageFlags:

Member
9/5/2026
!!exec Flags: $messageFlags
Custom Command
APP
9/5/2026
Flags:

Explanation:

  • The user types !!exec Flags: $messageFlags.
  • The bot executes the command and replaces $messageFlags with the actual flags of the triggering message.
  • The bot then replies with "Flags:" followed by the flags (if any) for that message. If there are no flags, the output will simply be "Flags:".

Function difficulty: Easy

Tags: Flags message

On this page