feat(commands/utils): adding the database field to the Ping run

This commit is contained in:
Raphael 2026-02-12 23:16:27 +01:00
parent 4b1d0cfec3
commit bdaf252df5
No known key found for this signature in database

View file

@ -9,6 +9,7 @@ use serenity::all::{
CommandInteraction, Context, CreateCommand, CreateInteractionResponse,
CreateInteractionResponseMessage, EditInteractionResponse,
};
use sqlx::PgPool;
pub struct Ping;
@ -28,7 +29,7 @@ impl SlashCommand for Ping {
.description(self.description())
}
async fn run(&self, ctx: &Context, command: &CommandInteraction) -> Result<(), serenity::Error> {
async fn run(&self, ctx: &Context, command: &CommandInteraction, _database: &PgPool) -> Result<(), serenity::Error> {
let message: CreateInteractionResponseMessage = CreateInteractionResponseMessage::new()
.content("🏓 | Pong!")
.ephemeral(true);