Entity Info
authorTag
$authorTag
The variable $authorTag returns the server tag of the author of the message: the short tag (up to 4 characters) that Discord shows next to the name of members who have chosen to display a server’s tag, for example BCS in “Garder500 [BCS]”. It is the equivalent of $userTag[$authorID].
This function does not exist in BibiScript: it is specific to Bot Creator. To get the username, use $authorUsername.
Syntax
$authorTag
Return value
- Type: Character string
- The server tag the author displays (
primary_guild.tag), for exampleBCS. - An empty string when the author displays no server tag.
Behavior
$authorTagtakes no arguments (passing one is an error).- When the command context does not carry the tag, the author is read from Discord.
- Bots that used
$authorTagto get a username orusername#discriminatormust use$authorUsername(and$discriminator[$authorID]) instead.
Examples
Author with the server tag
$title[Profile of $authorUsername]
$description[
**Name:** $authorUsername
**Server tag:** $if[$authorTag==]none$else$authorTag$endif
**ID:** $authorID
]
$color[#5865F2]
Notes
- A user can only display the tag of one server at a time, and can turn it off.
$userTagdoes the same for any user, given their ID.
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.