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๏
get_client_id() const |
|
get_discord_id() const |
|
get_error_message() const |
|
get_http_status() const |
|
get_jwt() const |
|
get_username() const |
|
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.
Signed JWT issued by the auth server on success.
String get_username() const ๐
Discord username verified by the auth server.
Returns true when authentication succeeded.