Skip to content

Commit 981a7f5

Browse files
committed
style: add horizontal separators in config display
1 parent 7600419 commit 981a7f5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

src/bot/commands/config.rs

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use crate::state::AppState;
33
use redis::AsyncCommands;
44
use serenity::all::{
55
CommandInteraction, Context, CreateCommand, CreateComponent, CreateContainer,
6-
CreateInteractionResponse, CreateInteractionResponseMessage, CreateTextDisplay, Mentionable,
7-
MessageFlags, RoleId,
6+
CreateInteractionResponse, CreateInteractionResponseMessage, CreateSeparator,
7+
CreateTextDisplay, Mentionable, MessageFlags, RoleId,
88
};
99
use std::sync::Arc;
1010

@@ -129,12 +129,14 @@ pub async fn handle(
129129
"Current verification settings for this server:\n{}\n* **Verified Role:** {}",
130130
mode_description, role_info
131131
))),
132+
CreateComponent::Separator(CreateSeparator::new(true)),
132133
CreateComponent::TextDisplay(CreateTextDisplay::new(format!(
133-
"Verified Users: {}/{} (total includes bots)\n{}\n\n\
134-
{} users still need to verify • Use `/setuproles` to change mode",
135-
verified_count,
136-
total_members,
137-
progress_bar,
134+
"Verified Users: {}/{} (total includes bots)\n{}",
135+
verified_count, total_members, progress_bar
136+
))),
137+
CreateComponent::Separator(CreateSeparator::new(true)),
138+
CreateComponent::TextDisplay(CreateTextDisplay::new(format!(
139+
"{} users still need to verify • Use `/setuproles` to change mode",
138140
total_members.saturating_sub(verified_count)
139141
))),
140142
]);

0 commit comments

Comments
 (0)