Allow 'off' to disable mentionRole

cshd
Dragory 2020-11-01 20:56:35 +02:00
parent f517cccd7b
commit 91d07dda8a
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 1 additions and 1 deletions

View File

@ -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}>`);