diff --git a/src/events/message.ts b/src/events/message.ts index 79f886b..5bedcde 100644 --- a/src/events/message.ts +++ b/src/events/message.ts @@ -1,11 +1,18 @@ import 'dotenv/config.js'; -import { Events, Message, EmbedBuilder, User } from "discord.js"; +import { + Events, + Message, + MessageType, + EmbedBuilder, + User +} from "discord.js"; import { DiscordClient } from '../discordClient'; module.exports = { name: Events.MessageCreate, async execute(client: DiscordClient, message: Message) { - if (message.author.bot) return; + // Don't respond to bots or replies + if (message.author.bot || message.type == MessageType.Reply) return; if (message.mentions.has(client.user as User)) { const embeds = [ new EmbedBuilder()