fix: move title to author field cause you can't @mention users in the title
This commit is contained in:
@@ -17,7 +17,7 @@ use twilight_model::{
|
||||
use twilight_util::builder::{
|
||||
InteractionResponseDataBuilder,
|
||||
command::CommandBuilder,
|
||||
embed::{EmbedBuilder, EmbedFieldBuilder},
|
||||
embed::{EmbedAuthorBuilder, EmbedBuilder, EmbedFieldBuilder},
|
||||
};
|
||||
|
||||
use crate::{bot_capnp, command::State};
|
||||
@@ -203,7 +203,7 @@ pub async fn handle(state: State, interaction: Interaction) {
|
||||
.interaction(state.discord_application_id)
|
||||
.create_followup(&interaction.token)
|
||||
.embeds(&[EmbedBuilder::new()
|
||||
.title(user_mention)
|
||||
.author(EmbedAuthorBuilder::new(user_mention))
|
||||
.field(EmbedFieldBuilder::new("Consent", format!("{consent:?}")).build())
|
||||
.field(
|
||||
EmbedFieldBuilder::new(
|
||||
|
||||
Reference in New Issue
Block a user