Skip to content

getBanDiscordID

Server-side

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 SA:O account.

OOP aliases

  • ban:getDiscordID()
  • ban.discordID

Where this comes from

RELATED SA:O APIS

Continue exploring

Read the system guide →