Skip to content

$userDisplayName

$userDisplayName will return the display name of a given user.

Usage

$userDisplayName[userID?]

Parameters

FieldTypeDescriptionRequired
userID?numberThe ID of the user.false

Example(s)

This will return your display name, if you have none then it’ll return your Discord username:

1
client.command({
2
name: "userDisplayName",
3
code: `
4
$userDisplayName[$authorID]
5
`
6
});