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

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