mirror of
https://github.com/ethanrusz/echbot.git
synced 2024-11-22 12:17:46 -05:00
Update formatting
This commit is contained in:
parent
c3a98c4431
commit
c9a2a6ca8d
1 changed files with 18 additions and 18 deletions
|
@ -64,16 +64,16 @@ pub(crate) async fn team(
|
||||||
.color(serenity::Colour::DARK_GREEN)
|
.color(serenity::Colour::DARK_GREEN)
|
||||||
})
|
})
|
||||||
.components(|c| {
|
.components(|c| {
|
||||||
c // Create an action row with button
|
c.create_action_row(|a| {
|
||||||
.create_action_row(|a| {
|
// Create an action row with button
|
||||||
a.create_button(
|
a.create_button(
|
||||||
|b| {
|
|b| {
|
||||||
b.style(serenity::ButtonStyle::Primary)
|
b.style(serenity::ButtonStyle::Primary)
|
||||||
.label("Swap Channels")
|
.label("Swap Channels")
|
||||||
.custom_id(uuid_team)
|
.custom_id(uuid_team)
|
||||||
}, // Use the context ID as button ID
|
}, // Use the context ID as button ID
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
.await?; // Send embed with team picks
|
.await?; // Send embed with team picks
|
||||||
|
@ -101,18 +101,18 @@ pub(crate) async fn team(
|
||||||
.color(serenity::Colour::DARK_GREEN)
|
.color(serenity::Colour::DARK_GREEN)
|
||||||
})
|
})
|
||||||
.components(|c| {
|
.components(|c| {
|
||||||
c // Create an action row with button
|
c.create_action_row(|a| {
|
||||||
.create_action_row(|a| {
|
// Create an action row with button
|
||||||
a.create_button(
|
a.create_button(
|
||||||
|b| {
|
|b| {
|
||||||
b
|
b
|
||||||
.disabled(true) // with disabled button
|
.disabled(true) // with disabled button
|
||||||
.style(serenity::ButtonStyle::Primary)
|
.style(serenity::ButtonStyle::Primary)
|
||||||
.label("Quit Sibelius") // and new text
|
.label("Quit Sibelius") // and new text
|
||||||
.custom_id(uuid_team)
|
.custom_id(uuid_team)
|
||||||
}, // Use the context ID as button ID
|
}, // Use the context ID as button ID
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue