DiscordAuthResult๏ƒ

Inherits: RefCounted < Object

Result of Discord.authenticate_with_server().

Description๏ƒ

Contains the JWT and user metadata returned by the discord-auth-golang backend, or error details on failure.

Methods๏ƒ

int

get_client_id() const

String

get_discord_id() const

String

get_error_message() const

int

get_http_status() const

String

get_jwt() const

String

get_username() const

bool

is_success() const


Method Descriptions๏ƒ

int get_client_id() const ๐Ÿ”—

Discord application client ID echoed by the auth server.


String get_discord_id() const ๐Ÿ”—

Discord user snowflake ID verified by the auth server.


String get_error_message() const ๐Ÿ”—

Human-readable error when is_success() is false.


int get_http_status() const ๐Ÿ”—

HTTP status code from the auth server response.


String get_jwt() const ๐Ÿ”—

Signed JWT issued by the auth server on success.


String get_username() const ๐Ÿ”—

Discord username verified by the auth server.


bool is_success() const ๐Ÿ”—

Returns true when authentication succeeded.