diff --git a/package.json b/package.json index 5c093b1..825a63d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "q-bot", - "version": "1.6.0", + "version": "1.6.1", "description": "Discord Bot for Qumu's Discord Server", "main": "build/index.js", "scripts": { diff --git a/src/events/logs/messageDelete.ts b/src/events/logs/messageDelete.ts index 9986efa..73918a6 100644 --- a/src/events/logs/messageDelete.ts +++ b/src/events/logs/messageDelete.ts @@ -7,7 +7,8 @@ import { Message, User, PartialMessage, Client, TextChannel, MessageEmbed } from 'discord.js'; export default async function messageDelete(msg: Message | PartialMessage, bot: Client) { - if (!msg.guild) return; + if (!msg.guild) return; + if (msg.content.startsWith('?')) return; const fetchedLogs = await msg.guild.fetchAuditLogs({ limit: 1, type: 'MESSAGE_DELETE',