Entity Info
authorID
$authorID
Returns the Discord ID of the author of the message that triggered the command.
Syntax
$authorID
$authorID
The variable $authorID returns the Discord ID of the author of the message that triggered the execution of the command.
Syntax
$authorID
Return value
- Type: Snowflake (numeric string of 17-19 digits)
- The unique ID of the message author
Behavior
$authorIDtakes no arguments.- In the context of a text command,
$authorIDis the ID of the person who sent the message. - In most simple cases,
$authorIDand$userIDare identical.
Examples
Profile of the author
$title[Profile of $authorUsername]
$author[$authorUsername;$authorAvatar]
$description[
**ID:** $authorID
**Tag:** $authorTag
]
$color[#5865F2]
$sendMessage[]
Owner verification
$if[$authorID==123456789012345678]
$sendMessage[Hello owner!]
$endif
Notes
$authorIDis the ID of the author of the message, whereas$userIDis the ID of the triggering user. In text commands, they are identical.- Use
$authorIDfor better semantic clarity in message-related code.