Skip to content

getBanDiscordID

Server-side

Available in Neon, not standard MTA

Reads the Discord identifier stored on a server ban.

Syntax

string|false getBanDiscordID(ban theBan)

Arguments

theBanban

Ban element to inspect.

Returns

The stored Discord snowflake string, or false when the ban is invalid or has no 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.

OOP aliases

  • ban:getDiscordID()
  • ban.discordID

Where this comes from

RELATED NEON APIS

Continue exploring

Read the system guide →