Add WebSocket latency
This commit is contained in:
parent
dab77e7b95
commit
b15f3aad6b
@ -2,9 +2,7 @@ use crate::Error;
|
|||||||
|
|
||||||
/// Check if the bot is alive
|
/// Check if the bot is alive
|
||||||
#[poise::command(slash_command)]
|
#[poise::command(slash_command)]
|
||||||
pub async fn ping(
|
pub async fn ping(ctx: poise::Context<'_, (), Error>) -> Result<(), Error> {
|
||||||
ctx: poise::Context<'_, (), Error>,
|
ctx.reply(format!("Powong! `{:?}`ms", ctx.ping().await.as_millis())).await?;
|
||||||
) -> Result<(), Error> {
|
|
||||||
ctx.reply("Powong!").await?;
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user