fix: make /opt-in and /opt-out's responses ephemeral

This commit is contained in:
2026-04-25 20:58:35 -04:00
parent 733e8f73ea
commit 48e92d1736
2 changed files with 4 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ use twilight_model::{
command::{Command, CommandType},
interaction::Interaction,
},
channel::message::MessageFlags,
http::interaction::{InteractionResponse, InteractionResponseType},
};
use twilight_util::builder::{InteractionResponseDataBuilder, command::CommandBuilder};
@@ -79,6 +80,7 @@ pub async fn handle(state: State, interaction: Interaction) {
.content(format!(
"opted you out, your previous consent was {previous_consent:?}"
))
.flags(MessageFlags::EPHEMERAL)
.build(),
),
},