Composed framework (#43)

Composed poise and serenity into a composed framework. This will help the migration towards slash-commands in the future.
This commit is contained in:
huynd2001 2024-03-27 12:50:48 -04:00 committed by GitHub
parent f3c062f417
commit a2f0684509
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 201 additions and 2 deletions

View file

@ -33,6 +33,9 @@ pub mod table_format;
/// The global app data.
pub type AppData = Arc<RwLock<TypeMap>>;
/// The global context type for app commands
pub type CmdContext<'a, Env> = poise::Context<'a, Env, anyhow::Error>;
/// The HTTP client.
pub struct HTTPClient;