From a08b70b94a727fd55f942aa90965d10ce4b9ff2a Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 15 Feb 2026 23:44:10 +0100 Subject: [PATCH] feat(utils/ping): adding the emoji parameters in Ping run --- src/commands/utils/ping.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/utils/ping.rs b/src/commands/utils/ping.rs index 2011642..3629b4b 100644 --- a/src/commands/utils/ping.rs +++ b/src/commands/utils/ping.rs @@ -1,6 +1,7 @@ use std::time::Instant; use crate::commands::{CommandEntry, SlashCommand}; +use crate::config::EmojiConfig; use serenity::all::{ CommandInteraction, Context, CreateCommand, CreateInteractionResponse, @@ -30,6 +31,7 @@ impl SlashCommand for Ping { ctx: &Context, command: &CommandInteraction, _database: &PgPool, + _emoji: &EmojiConfig, ) -> Result<(), serenity::Error> { let message: CreateInteractionResponseMessage = CreateInteractionResponseMessage::new() .content("🏓 | Pong!") @@ -42,7 +44,7 @@ impl SlashCommand for Ping { let delta_time: u128 = start.elapsed().as_millis(); let edit_msg: EditInteractionResponse = - EditInteractionResponse::new().content(format!("Ping: **{delta_time}**ms")); + EditInteractionResponse::new().content(format!("{} | Ping: **{delta_time}**ms", _emoji.answer.yes)); command.edit_response(&ctx.http, edit_msg).await?;