getPlayerDiscordID
Server-side
Returns the Discord identifier carried by a player's verified Neon Identity ticket.
Syntax
string|false getPlayerDiscordID(player thePlayer)Arguments
thePlayerplayerConnected player to inspect.
Returns
The Discord snowflake as a string, or false when the player is invalid or has no verified Discord identity.
Ownership and lifecycle
Verified player identifiers belong to the authenticated connection and are read-only to resources. Identity bans persist in the normal server ban list; their enforcement depends on a later connection supplying a verified Neon identity.
Important behavior
- The value is a string because Discord snowflakes exceed Lua 5.1's exact integer range.
- Identity-enabled servers receive this identifier under the current V1 contract.
OOP aliases
player:getDiscordID()
Where this comes from
SOURCECLuaPlayerDefs.cppServer/mods/deathmatch/logic/luadefs/CLuaPlayerDefs.cpp INTRODUCED / EXTENDEDe71b499ebRead the commit and why the change was made
RELATED NEON APIS
Read the system guide → Continue exploring
← Back to the Neon Lua API · How Verified Neon identity and bans works →