Add 'none' option for mentionRole
parent
180f936bc4
commit
bf47fb7406
|
@ -198,7 +198,7 @@ Alias for [inboxServerId](#inboxServerId)
|
|||
#### mentionRole
|
||||
**Default:** `here`
|
||||
**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.
|
||||
Set to an empty value (`mentionRole=`) to disable these pings entirely.
|
||||
|
||||
|
|
|
@ -271,7 +271,7 @@ function getInboxMentionAllowedMentions() {
|
|||
};
|
||||
|
||||
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 allowedMentions.roles.push(role);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue