mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Pass proper allowed_mentions when sending webhook messages
This commit is contained in:
parent
9420cb56f8
commit
472e556ef0
7 changed files with 78 additions and 68 deletions
|
|
@ -80,7 +80,7 @@ namespace PluralKit.Bot
|
|||
private string? ExtractLeadingMention(ref string input)
|
||||
{
|
||||
var mentionPos = 0;
|
||||
if (!StringUtils.HasMentionPrefix(input, ref mentionPos, out _)) return null;
|
||||
if (!DiscordUtils.HasMentionPrefix(input, ref mentionPos, out _)) return null;
|
||||
|
||||
var leadingMention = input.Substring(0, mentionPos);
|
||||
input = input.Substring(mentionPos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue