diff --git a/src/commands/mod.rs b/src/commands/mod.rs index 1caa328..0cb6500 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -1,4 +1,5 @@ use serenity::all::{CommandInteraction, Context, CreateCommand}; +use sqlx::PgPool; include!("./mod_gen.rs"); @@ -9,7 +10,7 @@ pub trait SlashCommand: Send + Sync { fn register(&self) -> CreateCommand; - async fn run(&self, ctx: &Context, command: &CommandInteraction) + async fn run(&self, ctx: &Context, command: &CommandInteraction, database: &PgPool) -> Result<(), serenity::Error>; }