Skip to content

Commit e1e01f1

Browse files
committed
Fix disableEveryone
1 parent 3eb3727 commit e1e01f1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/bot.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,8 @@ class Bot {
594594
const username = _.padEnd(author.substring(0, USERNAME_MAX_LENGTH), USERNAME_MIN_LENGTH, '_');
595595
webhook.client.send(withMentions, {
596596
username,
597-
text,
598597
avatarURL,
599-
disableEveryone: !canPingEveryone,
598+
disableMentions: canPingEveryone ? 'none' : 'everyone',
600599
}).catch(logger.error);
601600
return;
602601
}

0 commit comments

Comments
 (0)