From c9a2a6ca8d6b37dbb4630736fb22fc5cb33f6b92 Mon Sep 17 00:00:00 2001 From: Ethan Ruszanowski Date: Fri, 27 Jan 2023 12:09:46 -0500 Subject: [PATCH] Update formatting --- src/commands/team.rs | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/commands/team.rs b/src/commands/team.rs index 2ccde8a..5eaea26 100644 --- a/src/commands/team.rs +++ b/src/commands/team.rs @@ -64,16 +64,16 @@ pub(crate) async fn team( .color(serenity::Colour::DARK_GREEN) }) .components(|c| { - c // Create an action row with button - .create_action_row(|a| { - a.create_button( - |b| { - b.style(serenity::ButtonStyle::Primary) - .label("Swap Channels") - .custom_id(uuid_team) - }, // Use the context ID as button ID - ) - }) + c.create_action_row(|a| { + // Create an action row with button + a.create_button( + |b| { + b.style(serenity::ButtonStyle::Primary) + .label("Swap Channels") + .custom_id(uuid_team) + }, // Use the context ID as button ID + ) + }) }) }) .await?; // Send embed with team picks @@ -101,18 +101,18 @@ pub(crate) async fn team( .color(serenity::Colour::DARK_GREEN) }) .components(|c| { - c // Create an action row with button - .create_action_row(|a| { - a.create_button( - |b| { - b + c.create_action_row(|a| { + // Create an action row with button + a.create_button( + |b| { + b .disabled(true) // with disabled button .style(serenity::ButtonStyle::Primary) .label("Quit Sibelius") // and new text .custom_id(uuid_team) - }, // Use the context ID as button ID - ) - }) + }, // Use the context ID as button ID + ) + }) }) }) })