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 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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue