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§
- Credentials
Error - Why
Credentialscould 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