diff options
| author | Matthieu Pignolet <matthieu@matthieu-dev.xyz> | 2024-11-06 10:30:22 +0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-06 10:30:22 +0400 |
| commit | 911deb2293444eb42dade90db598139593ee9624 (patch) | |
| tree | 48264fe400ba61a70290353bcfbff00886e18664 | |
| parent | fad219f2b08e71ac732a920a9b4767f449687d68 (diff) | |
Update index.mjs
| -rw-r--r-- | discordjs/src/index.mjs | 3 |
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) { |
