From 82f73a8f51847ec8b8b9ed3d9c205df7236a5834 Mon Sep 17 00:00:00 2001 From: Dragory Date: Sun, 17 Feb 2019 16:01:04 +0200 Subject: [PATCH] utils: fix role mention regex --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 863adcdf..61dcdeb0 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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");