Entity Info
authorTag
$authorTag
The variable $authorTag returns the complete tag of the author of the message. It is the equivalent of $userTag[$authorID] but explicitly linked to the author of the command.
Syntax
$authorTag
Return value
- Type: Character string
username#discriminatorwhen the discriminator supplied by the command context is not0/0000- The username alone for accounts without a discriminator (new accounts)
- If the context has no username or tag, the author is read from Discord: bots then give
username#NNNN(4 digits, zero padded) and other users give the username alone
Behavior
$authorTagtakes no arguments (passing one is an error).- For new accounts, the tag is identical to the username.
Examples
Profile of the author
$title[Profile of $authorTag]
$author[$authorUsername;$authorAvatar]
$description[
**Name:** $authorUsername
**Tag:** $authorTag
**ID:** $authorID
]
$color[#5865F2]
Notes
- The
username#discriminatorformat is obsolete for new Discord accounts. - For reliable identification, use
$authorID. $userTagtakes an optional user ID and always reads the user from Discord (bots giveusername#NNNN, other users the username alone).
Try it
Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.