Skip to content

Commit

Permalink
ignore empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jvnipers committed Sep 26, 2024
1 parent 202b127 commit 52670ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/logger/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ client.on(Events.MessageDelete, async (message) => {

if (!message.guild) return;
if (message.webhookId !== null || message.author === client.user) return;
if (message.content.length === 0 || message.content === null) return;

const data = await schema.findOne({
Guild: message.guild.id,
Expand Down

0 comments on commit 52670ba

Please sign in to comment.