mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-12 16:50:10 +00:00
fix(bot): add allowed mentions to msg info replies
This commit is contained in:
parent
49ce00e675
commit
0983179240
2 changed files with 5 additions and 3 deletions
|
|
@ -201,7 +201,7 @@ public class ReactionAdded: IEventHandler<MessageReactionAddEvent>
|
|||
Type = ComponentType.Separator
|
||||
});
|
||||
components.AddRange(await _embeds.CreateMessageInfoMessageComponents(msg, true, config));
|
||||
await _rest.CreateMessage(dm, new MessageRequest { Components = components.ToArray(), Flags = Message.MessageFlags.IsComponentsV2 });
|
||||
await _rest.CreateMessage(dm, new MessageRequest { Components = components.ToArray(), Flags = Message.MessageFlags.IsComponentsV2, AllowedMentions = new AllowedMentions() });
|
||||
}
|
||||
catch (ForbiddenException) { } // No permissions to DM, can't check for this :(
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue