From 91d07dda8aac656944489b8e18513c63415c84ad Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sun, 1 Nov 2020 20:56:35 +0200 Subject: [PATCH] Allow 'off' to disable mentionRole --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 54a0d0c..deafbbc 100644 --- a/src/utils.js +++ b/src/utils.js @@ -255,7 +255,7 @@ function getInboxMention() { const mentionRoles = Array.isArray(config.mentionRole) ? config.mentionRole : [config.mentionRole]; const mentions = []; for (const role of mentionRoles) { - if (role == null) continue; + if (role == null || role === "none" || role === "off" || role === "") continue; else if (role === "here") mentions.push("@here"); else if (role === "everyone") mentions.push("@everyone"); else mentions.push(`<@&${role}>`);