Skip to content

Commit

Permalink
Fix Apollo replying to @here and @everyone mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
louisescher committed Dec 15, 2024
1 parent 61d60e0 commit 43ba2bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ client.on('messageCreate', async (interaction) => {
client.on('messageCreate', async (message) => {
if (message.author.bot) return;

if (message.mentions.has(client.user!)) {
if (message.mentions.members?.has(client.user!.id)) {
message.reply(messages[Math.floor(Math.random() * messages.length)].message);
}
});
Expand Down

0 comments on commit 43ba2bc

Please sign in to comment.