Extract trait

This commit is contained in:
claude Bot committed 2024-02-17 20:25:14 +00:00
1 parent 4823754955
commit c1305cfb36
14 files changed
+336 -176

No files matched your search

+5 -1
View File
@@ -9,7 +9,7 @@ use poise::{
use crate::{
consts::{CNC_GUILD, SUBSCRIPTION_ROLES},
Context,
ApplicationContext, Context,
};
pub async fn check_subscription(cache_http: impl CacheHttp, user_id: impl Into<UserId>) -> bool {
@@ -64,3 +64,7 @@ pub fn footer(ctx: Context<'_>) -> CreateEmbedFooter {
shard_count,
))
}
pub trait Extract {
fn extract(ctx: ApplicationContext) -> Self;
}