fix: move title to author field cause you can't @mention users in the title

This commit is contained in:
2026-04-22 01:05:34 -04:00
parent dd17de79de
commit 29f97f82c4

View File

@@ -17,7 +17,7 @@ use twilight_model::{
use twilight_util::builder::{ use twilight_util::builder::{
InteractionResponseDataBuilder, InteractionResponseDataBuilder,
command::CommandBuilder, command::CommandBuilder,
embed::{EmbedBuilder, EmbedFieldBuilder}, embed::{EmbedAuthorBuilder, EmbedBuilder, EmbedFieldBuilder},
}; };
use crate::{bot_capnp, command::State}; use crate::{bot_capnp, command::State};
@@ -203,7 +203,7 @@ pub async fn handle(state: State, interaction: Interaction) {
.interaction(state.discord_application_id) .interaction(state.discord_application_id)
.create_followup(&interaction.token) .create_followup(&interaction.token)
.embeds(&[EmbedBuilder::new() .embeds(&[EmbedBuilder::new()
.title(user_mention) .author(EmbedAuthorBuilder::new(user_mention))
.field(EmbedFieldBuilder::new("Consent", format!("{consent:?}")).build()) .field(EmbedFieldBuilder::new("Consent", format!("{consent:?}")).build())
.field( .field(
EmbedFieldBuilder::new( EmbedFieldBuilder::new(