Update poise

This commit is contained in:
jude
2022-11-20 11:30:02 +00:00
parent 6307de331d
commit b8b17a504d
12 changed files with 443 additions and 296 deletions

View File

@ -101,12 +101,7 @@ pub async fn upload_new_sound(
}
/// Delete a sound you have uploaded
#[poise::command(
slash_command,
rename = "delete",
category = "Manage",
guild_only = true
)]
#[poise::command(slash_command, rename = "delete", guild_only = true)]
pub async fn delete_sound(
ctx: Context<'_>,
#[description = "Name or ID of sound to delete"]
@ -159,12 +154,7 @@ pub async fn delete_sound(
}
/// Change a sound between public and private
#[poise::command(
slash_command,
rename = "public",
category = "Manage",
guild_only = true
)]
#[poise::command(slash_command, rename = "public", guild_only = true)]
pub async fn change_public(
ctx: Context<'_>,
#[description = "Name or ID of sound to change privacy setting of"]
@ -207,12 +197,7 @@ pub async fn change_public(
}
/// Download a sound file from the bot
#[poise::command(
slash_command,
rename = "download",
category = "Manage",
guild_only = true
)]
#[poise::command(slash_command, rename = "download", guild_only = true)]
pub async fn download_file(
ctx: Context<'_>,
#[description = "Name or ID of sound to download"]