Custom Command
FunctionsMember Functions

$discriminator

Returns the discriminator of the user who executed the command, or a specified member.

Usage:

$discriminator[userID]
  1. userID - (Optional) default value: $authorID. The ID of user you want to return the discriminator from.

Example

Using $discriminator

Returning a discriminator from user

Member
9/5/2026

!!exec $discriminator

Custom Command
APP
9/5/2026

1234

Note

This feature is deprecated because Discord switched to usernames. This function will return 0 as of the username update. This still works on bots.

Related Functions: $username $nickname $userTag

Function difficulty: Easy

Tags: name tag discriminator

On this page