Skip to content

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.

GetPlayerDiscordName(pid)
Parameter Type
pid number the player

string - the name; nil without a Discord account here

SendClientMessage(pid, COLOR_WHITE, "Welcome, " .. (GetPlayerDiscordName(pid) or GetPlayerName(pid)))

GetPlayerDiscordId · the Joins and Discord group of the index