summaryrefslogtreecommitdiff
path: root/discordjs
diff options
context:
space:
mode:
authorMatthieu Pignolet <matthieu@matthieu-dev.xyz>2024-11-06 10:30:22 +0400
committerGitHub <noreply@github.com>2024-11-06 10:30:22 +0400
commit911deb2293444eb42dade90db598139593ee9624 (patch)
tree48264fe400ba61a70290353bcfbff00886e18664 /discordjs
parentfad219f2b08e71ac732a920a9b4767f449687d68 (diff)
Update index.mjs
Diffstat (limited to 'discordjs')
-rw-r--r--discordjs/src/index.mjs3
1 files changed, 2 insertions, 1 deletions
diff --git a/discordjs/src/index.mjs b/discordjs/src/index.mjs
index baced9d..f1c942c 100644
--- a/discordjs/src/index.mjs
+++ b/discordjs/src/index.mjs
@@ -88,7 +88,8 @@ const messageAction = async (message, ctx) => {
(ctx === SYMBOL_FOR_CREATE && shouldReplyByTimestamp) ||
shouldReplyByCounter ||
specialChannels.includes(message.channelId) ||
- message.guild == null
+ message.guild == null ||
+ message.mentions.has(client.user)
);
if (shouldReply) {