help command. moved list commands to subcommands

This commit is contained in:
jude committed 2022-01-27 17:15:17 +00:00
1 parent b350007dae
commit d59c50e7a9
3 files changed
+71 -13

No files matched your search

+9 -3
View File
@@ -26,9 +26,15 @@ fn format_search_results<'a>(search_results: Vec<Sound>) -> CreateReply<'a> {
builder
}
/// Show the sounds uploaded to this server
/// Show uploaded sounds
#[poise::command(slash_command, rename = "list")]
pub async fn list_sounds(ctx: Context<'_>) -> Result<(), Error> {
pub async fn list_sounds(_ctx: Context<'_>) -> Result<(), Error> {
Ok(())
}
/// Show the sounds uploaded to this server
#[poise::command(slash_command, rename = "server")]
pub async fn list_guild_sounds(ctx: Context<'_>) -> Result<(), Error> {
let sounds;
let mut message_buffer;
@@ -62,7 +68,7 @@ pub async fn list_sounds(ctx: Context<'_>) -> Result<(), Error> {
}
/// Show all sounds you have uploaded
#[poise::command(slash_command, rename = "me")]
#[poise::command(slash_command, rename = "user")]
pub async fn list_user_sounds(ctx: Context<'_>) -> Result<(), Error> {
let sounds;
let mut message_buffer;