Functionalities
Other
$tag
Returns the tag of the command author or the defined ID of a user.

FUNCTION USAGE

  • $tag
  • $tag[]
  • $tag[userID]

Properties:

[] - Leave brackets empty to return the command authors tag. Same as no brackets. userID - Supply a user ID to return their tag. Returns undefined if no user is found.
Tag looks like this: Speshul#5441
Bot does not have to share a server with a user! Supply a user ID for global user tags
Example 1: Getting the command author's tag
1
bot.Command({
2
name: "tag",
3
code: `
4
$tag
5
`
6
})
Copied!
Example 2: Getting the tag of another user from anywhere in discord
1
bot.Command({
2
name: "tag",
3
code: `
4
$tag[$findUser[$message[]]]
5
`
6
})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: