Skip to content

$discriminator

$discriminator will return a user’s discriminator.

Usage

$discriminator[userId?]

Parameters

FieldTypeDescriptionRequired
userId?numberThe ID of the user you want the discriminator to be returned of.false

Example(s)

This will return your Discord User Discriminator, for example User#0000 (the four digits):

1
client.command({
2
name: "discriminator",
3
code: `
4
$discriminator[$authorID] // your discriminator
5
$discriminator[$clientID] // the bot's discriminator
6
`
7
});