Consider an empty value for mentionRole as 'none'
parent
bf47fb7406
commit
4ea5650289
|
@ -271,7 +271,7 @@ function getInboxMentionAllowedMentions() {
|
|||
};
|
||||
|
||||
for (const role of mentionRoles) {
|
||||
if (role == null || role === "none") continue;
|
||||
if (role == null || role === "none" || role === "") continue;
|
||||
else if (role === "here" || role === "everyone") allowedMentions.everyone = true;
|
||||
else allowedMentions.roles.push(role);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue