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,
|
CommandInteraction, Context, CreateCommand, CreateInteractionResponse,
|
||||||
CreateInteractionResponseMessage, EditInteractionResponse,
|
CreateInteractionResponseMessage, EditInteractionResponse,
|
||||||
};
|
};
|
||||||
|
use sqlx::PgPool;
|
||||||
|
|
||||||
pub struct Ping;
|
pub struct Ping;
|
||||||
|
|
||||||
|
|
@ -28,7 +29,7 @@ impl SlashCommand for Ping {
|
||||||
.description(self.description())
|
.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()
|
let message: CreateInteractionResponseMessage = CreateInteractionResponseMessage::new()
|
||||||
.content("🏓 | Pong!")
|
.content("🏓 | Pong!")
|
||||||
.ephemeral(true);
|
.ephemeral(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue