fix: allowed mentions
This commit is contained in:
parent
0ac8f56ca1
commit
1e076595d6
1 changed files with 7 additions and 6 deletions
|
|
@ -4,11 +4,11 @@ use anyhow::{Context as _, bail};
|
|||
use dashmap::DashMap;
|
||||
use serenity::{
|
||||
all::{
|
||||
CacheHttp, ChannelId, Component, Context, CreateComponent, CreateMediaGallery,
|
||||
CreateMediaGalleryItem, CreateSeparator, CreateTextDisplay, CreateUnfurledMediaItem,
|
||||
CreateWebhook, EditWebhookMessage, EventHandler, ExecuteWebhook, FullEvent,
|
||||
GenericChannelId, GuildId, Interaction, Message, MessageFlags, MessageId, MessageSnapshot,
|
||||
Reaction, Webhook, WebhookId,
|
||||
CacheHttp, ChannelId, Component, Context, CreateAllowedMentions, CreateComponent,
|
||||
CreateMediaGallery, CreateMediaGalleryItem, CreateSeparator, CreateTextDisplay,
|
||||
CreateUnfurledMediaItem, CreateWebhook, EditWebhookMessage, EventHandler, ExecuteWebhook,
|
||||
FullEvent, GenericChannelId, GuildId, Interaction, Message, MessageFlags, MessageId,
|
||||
MessageSnapshot, Reaction, Webhook, WebhookId,
|
||||
},
|
||||
async_trait,
|
||||
};
|
||||
|
|
@ -363,7 +363,8 @@ impl Handler {
|
|||
.unwrap_or_else(|| msg.author.default_avatar_url()),
|
||||
)
|
||||
.components(components)
|
||||
.flags(MessageFlags::IS_COMPONENTS_V2),
|
||||
.flags(MessageFlags::IS_COMPONENTS_V2)
|
||||
.allowed_mentions(CreateAllowedMentions::new()),
|
||||
)
|
||||
.await?
|
||||
.unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue