feat: add descriptions to commands & arguments
Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
parent
6e33299af7
commit
8bad9d9636
7 changed files with 19 additions and 5 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue