command docs

This commit is contained in:
August 2026-05-06 19:37:38 -04:00
parent f16983540a
commit c946ae541f
Signed by: shibedrill
SSH Key Fingerprint: SHA256:M0m3JW1s38BgO2t0fG146Yxd9OJ2IOqkvCAsuRHQ6Pw

View File

@ -94,6 +94,7 @@ pub async fn event_handler(
} }
} }
/// List online players
#[poise::command(slash_command)] #[poise::command(slash_command)]
pub async fn players( pub async fn players(
ctx: poise::Context<'_, Data, serenity::Error>, ctx: poise::Context<'_, Data, serenity::Error>,
@ -126,6 +127,7 @@ pub async fn players(
Ok(()) Ok(())
} }
/// Find out how to join!
#[poise::command(slash_command)] #[poise::command(slash_command)]
pub async fn join(ctx: poise::Context<'_, Data, serenity::Error>) -> Result<(), serenity::Error> { pub async fn join(ctx: poise::Context<'_, Data, serenity::Error>) -> Result<(), serenity::Error> {
let cache = ctx.data().cached_reply.lock().await; let cache = ctx.data().cached_reply.lock().await;