feat: add descriptions to commands & arguments

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
seth 2023-12-04 09:31:14 -05:00
parent 6e33299af7
commit 8bad9d9636
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
7 changed files with 19 additions and 5 deletions

View file

@ -3,8 +3,12 @@ use crate::Context;
use color_eyre::eyre::Result;
/// Gets a Rory photo!
#[poise::command(slash_command, prefix_command)]
pub async fn rory(ctx: Context<'_>, id: Option<u64>) -> Result<()> {
pub async fn rory(
ctx: Context<'_>,
#[description = "specify a Rory ID"] id: Option<u64>,
) -> Result<()> {
let resp = get_rory(id).await?;
ctx.send(|m| {