feat(commands/utils): adding the database field to the SlashCommand trait
This commit is contained in:
parent
bdaf252df5
commit
122f273246
1 changed files with 2 additions and 1 deletions
|
|
@ -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>;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue