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

@ -2,8 +2,14 @@ use crate::Context;
use color_eyre::eyre::{eyre, Result};
#[poise::command(slash_command, prefix_command, ephemeral)]
pub async fn say(ctx: Context<'_>, content: String) -> Result<()> {
/// Say something through the bot
#[poise::command(
slash_command,
prefix_command,
ephemeral,
default_member_permissions = "MODERATE_MEMBERS"
)]
pub async fn say(ctx: Context<'_>, #[description = "Just content?"] content: String) -> Result<()> {
let guild = ctx.guild().ok_or_else(|| eyre!("Couldn't get guild!"))?;
let channel = ctx
.guild_channel()