$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

User#123404/23/2025
!!exec $discriminator
Custom Command Bot 04/23/2025
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.

Function difficulty: Easy
Tags: name tag discriminator