Skip to content

Commit

Permalink
Add logging to messageDelete since it is not sending any webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Apr 8, 2024
1 parent 5b0ae0f commit 732f453
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/events/messageDelete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ const event: EventModule<Events.MessageDelete> = {
name: Events.MessageDelete,
async execute(message) {
if (message.author?.bot) {
logger.verbose('skipping delete webhook, bot message');
return;
}

if (!message.inGuild()) {
logger.verbose('skipping delete webhoo, message is not in a guild');
return;
}

Expand Down

0 comments on commit 732f453

Please sign in to comment.