Remove unused files. Fix compiler warnings. Update help

This commit is contained in:
2022-09-13 10:46:45 +01:00
parent f5acab7440
commit a05d6f77db
13 changed files with 11 additions and 23 deletions

View File

@ -21,6 +21,7 @@ pub async fn help(ctx: Context<'_>) -> Result<(), Error> {
__Play Commands__
`/play` - Play a sound by name or ID
`/queue` - Play sounds on queue instead of instantly
`/loop` - Play a sound on loop
`/disconnect` - Disconnect the bot
`/stop` - Stop playback
@ -38,7 +39,8 @@ __Search Commands__
`/random` - View random public sounds
__Setting Commands__
`/greet set/unset` - Set or unset a join sound
`/greet server set/unset` - Set or unset a join sound for just this server
`/greet user set/unset` - Set or unset a join sound across all servers
`/greet enable/disable` - Enable or disable join sounds on this server
`/volume` - Change the volume

View File

@ -81,7 +81,7 @@ pub async fn set_guild_greet_sound(
Some(sound) => {
ctx.data()
.update_join_sound(user.id, ctx.guild_id(), Some(sound.id))
.await;
.await?;
ctx.say(format!(
"Greet sound has been set to {} (ID {})",
@ -123,7 +123,7 @@ pub async fn unset_guild_greet_sound(
ctx.data()
.update_join_sound(user.id, ctx.guild_id(), None)
.await;
.await?;
ctx.say("Greet sound has been unset").await?;
@ -153,7 +153,7 @@ pub async fn set_user_greet_sound(
Some(sound) => {
ctx.data()
.update_join_sound(ctx.author().id, None::<GuildId>, Some(sound.id))
.await;
.await?;
ctx.send(|b| {
b.ephemeral(true).content(format!(
@ -181,7 +181,7 @@ pub async fn set_user_greet_sound(
pub async fn unset_user_greet_sound(ctx: Context<'_>) -> Result<(), Error> {
ctx.data()
.update_join_sound(ctx.author().id, None::<GuildId>, None)
.await;
.await?;
ctx.send(|b| b.ephemeral(true).content("Greet sound has been unset"))
.await?;