Update poise
This commit is contained in:
@ -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"]
|
||||
|
@ -9,7 +9,7 @@ pub mod stop;
|
||||
|
||||
pub async fn autocomplete_sound(
|
||||
ctx: Context<'_>,
|
||||
partial: String,
|
||||
partial: &str,
|
||||
) -> Vec<poise::AutocompleteChoice<String>> {
|
||||
ctx.data()
|
||||
.autocomplete_user_sounds(&partial, ctx.author().id, ctx.guild_id().unwrap())
|
||||
|
@ -1,6 +1,5 @@
|
||||
use poise::{
|
||||
serenity::{builder::CreateActionRow, model::application::component::ButtonStyle},
|
||||
serenity_prelude::GuildChannel,
|
||||
use poise::serenity_prelude::{
|
||||
builder::CreateActionRow, model::application::component::ButtonStyle, GuildChannel,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
|
Reference in New Issue
Block a user