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