fix: allowed mentions
All checks were successful
Build / Build (push) Successful in 44s
Build / docker (push) Successful in 17s

This commit is contained in:
파링 2026-02-04 20:54:25 +09:00
parent 0ac8f56ca1
commit 1e076595d6
Signed by: paring
SSH key fingerprint: SHA256:8uCHhCpn/gVOLEaTolmbub9kfM6XBxWkIWmHxUZoWWk

View file

@ -4,11 +4,11 @@ use anyhow::{Context as _, bail};
use dashmap::DashMap; use dashmap::DashMap;
use serenity::{ use serenity::{
all::{ all::{
CacheHttp, ChannelId, Component, Context, CreateComponent, CreateMediaGallery, CacheHttp, ChannelId, Component, Context, CreateAllowedMentions, CreateComponent,
CreateMediaGalleryItem, CreateSeparator, CreateTextDisplay, CreateUnfurledMediaItem, CreateMediaGallery, CreateMediaGalleryItem, CreateSeparator, CreateTextDisplay,
CreateWebhook, EditWebhookMessage, EventHandler, ExecuteWebhook, FullEvent, CreateUnfurledMediaItem, CreateWebhook, EditWebhookMessage, EventHandler, ExecuteWebhook,
GenericChannelId, GuildId, Interaction, Message, MessageFlags, MessageId, MessageSnapshot, FullEvent, GenericChannelId, GuildId, Interaction, Message, MessageFlags, MessageId,
Reaction, Webhook, WebhookId, MessageSnapshot, Reaction, Webhook, WebhookId,
}, },
async_trait, async_trait,
}; };
@ -363,7 +363,8 @@ impl Handler {
.unwrap_or_else(|| msg.author.default_avatar_url()), .unwrap_or_else(|| msg.author.default_avatar_url()),
) )
.components(components) .components(components)
.flags(MessageFlags::IS_COMPONENTS_V2), .flags(MessageFlags::IS_COMPONENTS_V2)
.allowed_mentions(CreateAllowedMentions::new()),
) )
.await? .await?
.unwrap(); .unwrap();