$messageID

Retrieves the ID of the message that triggered the command.

Description: This function returns the unique ID of the Discord message that initiated the execution of your custom command.

Usage: $messageID

Example:

!!exec $messageID

Explanation: In this example, when the command !!exec $messageID is executed, $messageID will be replaced with the actual message ID of the message that contained the command. The custom command then processes and likely outputs or uses this message ID.

Discord Example:

Member04/23/2025
!!exec $messageID
Custom Command Bot 04/23/2025
789089088989809890

Function Difficulty: Easy

Tags: ID message