minor formatting fix

This commit is contained in:
Stachelbeere1248 2025-07-02 19:06:26 +02:00
parent ce999bd271
commit f06ef056c0
Signed by: Stachelbeere1248
SSH key fingerprint: SHA256:IozEKdw2dB8TZxkpPdMxcWSoWTIMwoLaCcZJ1AJnY2o

View file

@ -1,8 +1,7 @@
use poise::{ChoiceParameter, CreateReply};
use reqwest::Client;
use serenity::all::{
ButtonStyle, ChannelId, CreateActionRow, CreateAllowedMentions, CreateButton, CreateEmbed,
CreateMessage, ReactionType, User,
ButtonStyle, ChannelId, CreateActionRow, CreateAllowedMentions, CreateButton, CreateEmbed, CreateMessage, ReactionType, User
};
use sqlx::{Pool, Sqlite};
@ -106,7 +105,9 @@ pub(crate) async fn add(
fn create_verification_message(stats: Arcade, user: &User, ign: String) -> CreateMessage {
let embed = CreateEmbed::new()
.fields(Vec::<(&'static str, String, bool)>::from(stats))
.title(format!("Verification request for {user} `{ign}`"));
.title("Verification request".to_string())
.field("Discord", user.to_string(), false)
.field("Minecraft", ign, false);
CreateMessage::new()
.embed(embed)
.allowed_mentions(CreateAllowedMentions::new().empty_roles().all_users(true))