$discriminator

Returns a user’s discriminator (the 4 digit number at the end of their username).

Syntax

$discriminator[User ID]

Discord has updated the username system, removing discriminators for users. Discriminators will only work for bots. For user it will return 0000.

Parameters

  • User ID (Type: Snowflake || Flag: Emptiable): The user to get the discriminator from.

Example

$nomention
Discriminator: $discriminator[$mentioned[1]]
!example BDFD Support Discriminator: #7678

You can use $discriminator[] get the discriminator of the author.
How $mentioned[] works?)