utils: fix role mention regex
This commit is contained in:
parent
2e13495d77
commit
82f73a8f51
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ export const emptyEmbedValue = "\u200b";
|
|||
export const embedPadding = "\n" + emptyEmbedValue;
|
||||
|
||||
export const userMentionRegex = /<@!?([0-9]+)>/g;
|
||||
export const roleMentionRegex = /<&([0-9]+)>/g;
|
||||
export const roleMentionRegex = /<@&([0-9]+)>/g;
|
||||
|
||||
export function getUserMentions(str: string) {
|
||||
const regex = new RegExp(userMentionRegex.source, "g");
|
||||
|
|
Loading…
Add table
Reference in a new issue