diff --git a/src/api.rs b/src/api.rs index 06c9541..e74d270 100644 --- a/src/api.rs +++ b/src/api.rs @@ -6,7 +6,7 @@ pub(crate) async fn send_reply<'m, S: std::string::ToString>( msg: &Message, message: S, ) -> CommandResult { - msg.channel_id.say(ctx, message.to_string()).await?; + msg.reply(ctx, message.to_string()).await?; Ok(()) } diff --git a/src/commands/admin.rs b/src/commands/admin.rs index 206ef64..c79ef99 100644 --- a/src/commands/admin.rs +++ b/src/commands/admin.rs @@ -94,4 +94,4 @@ async fn ban(ctx: &Context, msg: &Message) -> CommandResult { } } Ok(()) -} \ No newline at end of file +} diff --git a/src/commands/mod.rs b/src/commands/mod.rs index faba371..4fd61e8 100644 --- a/src/commands/mod.rs +++ b/src/commands/mod.rs @@ -7,4 +7,4 @@ pub(crate) mod settings; #[cfg(feature = "music")] pub(crate) mod music; -pub(crate) type Result = std::result::Result>; \ No newline at end of file +pub(crate) type Result = std::result::Result>; diff --git a/src/commands/music.rs b/src/commands/music.rs index bb0b34d..416e53f 100644 --- a/src/commands/music.rs +++ b/src/commands/music.rs @@ -507,8 +507,6 @@ async fn next(ctx: &Context, msg: &Message) -> CommandResult { let queue = handler.queue(); - let current_queue = queue.current_queue(); - let next = current_queue.get(1); queue.skip()?; } else { msg.channel_id diff --git a/src/data/guilds_options.rs b/src/data/guilds_options.rs index cf29bd0..019a658 100644 --- a/src/data/guilds_options.rs +++ b/src/data/guilds_options.rs @@ -84,9 +84,7 @@ impl GuildOptions { } #[cfg(feature = "music")] - pub(crate) fn get_mute_role( - &self - ) -> Option { + pub(crate) fn get_mute_role(&self) -> Option { self.mute_id } }