$(msgid)
- Syntax
$(msgid)- Arguments
- None
The $(msgid) variable outputs the unique message ID of the chat message that triggered the command — mainly useful for debugging and advanced custom integrations.
Use it
Section titled “Use it”!command add !messageid The ID of the message that triggered this command is: $(msgid)To use the $(msgid) variable, simply include it in your command response or custom script. The chatbot will automatically replace it with the actual message ID when the command is triggered.
Related Variables
Section titled “Related Variables”$(user): Returns the username of the person who triggered the command$(channel): Returns the name of the channel where the command was triggered
Q: What format does the message ID use?
A: The variable returns the platform’s native message ID. On Twitch this is a UUID (a string of letters and numbers separated by hyphens, such as bcc9b4bc-566d-4f14-a57d-a86c1c3196f8); other platforms like YouTube and Kick use their own ID formats.