Add 'none' option for mentionRole
parent
180f936bc4
commit
bf47fb7406
|
@ -198,7 +198,7 @@ Alias for [inboxServerId](#inboxServerId)
|
||||||
#### mentionRole
|
#### mentionRole
|
||||||
**Default:** `here`
|
**Default:** `here`
|
||||||
**Accepts multiple values.** Role that is mentioned when new threads are created or the bot is mentioned.
|
**Accepts multiple values.** Role that is mentioned when new threads are created or the bot is mentioned.
|
||||||
Accepted values are "here", "everyone", or a role id.
|
Accepted values are `none`, `here`, `everyone`, or a role id.
|
||||||
Requires `pingOnBotMention` to be enabled.
|
Requires `pingOnBotMention` to be enabled.
|
||||||
Set to an empty value (`mentionRole=`) to disable these pings entirely.
|
Set to an empty value (`mentionRole=`) to disable these pings entirely.
|
||||||
|
|
||||||
|
|
|
@ -271,7 +271,7 @@ function getInboxMentionAllowedMentions() {
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const role of mentionRoles) {
|
for (const role of mentionRoles) {
|
||||||
if (role == null) continue;
|
if (role == null || role === "none") continue;
|
||||||
else if (role === "here" || role === "everyone") allowedMentions.everyone = true;
|
else if (role === "here" || role === "everyone") allowedMentions.everyone = true;
|
||||||
else allowedMentions.roles.push(role);
|
else allowedMentions.roles.push(role);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue