Formatting code
This commit is contained in:
@@ -16,7 +16,9 @@ pub async fn run(ctx: &Context, command: &ApplicationCommandInteraction) {
|
||||
let guild_id = match command.guild_id {
|
||||
Some(g) => g,
|
||||
None => {
|
||||
if let Err(why) = edit_response(&ctx, &command, "Unable to join voice channel".to_string()).await {
|
||||
if let Err(why) =
|
||||
edit_response(&ctx, &command, "Unable to join voice channel".to_string()).await
|
||||
{
|
||||
error!("Failed to edit response message: {}", why);
|
||||
}
|
||||
return;
|
||||
@@ -40,4 +42,4 @@ pub async fn run(ctx: &Context, command: &ApplicationCommandInteraction) {
|
||||
|
||||
pub fn register(command: &mut CreateApplicationCommand) -> &mut CreateApplicationCommand {
|
||||
command.name("pause").description("Pause the current track")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user