GetPlayerDiscordName
The player’s Discord user name, as it was when they signed in.
Their Discord user name (not the display name) at their last sign-in in the launcher - it may have changed since. For a log line or a
welcome; GetPlayerDiscordId is the key that stays theirs.
Syntax
Section titled “Syntax”GetPlayerDiscordName(pid)| Parameter | Type | |
|---|---|---|
pid |
number | the player |
Returns
Section titled “Returns”string - the name; nil without a Discord account here
Example
Section titled “Example”SendClientMessage(pid, COLOR_WHITE, "Welcome, " .. (GetPlayerDiscordName(pid) or GetPlayerName(pid)))See also
Section titled “See also”GetPlayerDiscordId · the Joins and Discord group of the index
