Skip to main content

Module credentials

Module credentials 

Source
Expand description

What identifies and authorizes the Discord application (ADR 0014). Composure never loads configuration itself: an Adapter (or the bot) builds Credentials from wherever it keeps them, by the conventional names with Credentials::from_lookup, or through serde with any loader (config, figment, envy, …).

Structs§

Credentials
The application’s public key (required, verifies Interactions), and optionally the bot token (for Ctx::bot) and the application id (for a Bot Client outside Interactions).

Enums§

CredentialsError
Why Credentials could not be built

Constants§

APPLICATION_ID_VAR
Variable holding the application id, for a Bot Client outside Interactions
BOT_TOKEN_VAR
Secret / environment variable holding the bot token, for the Bot Client
PUBLIC_KEY_VAR
Secret / environment variable holding the application’s hex public key