Skip to content

Commit

Permalink
error handling for MD
Browse files Browse the repository at this point in the history
  • Loading branch information
O.Whale authored May 17, 2024
1 parent 9d024f0 commit 0aba37e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions events/messageDelete.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ module.exports = {

await message.guild.channels.fetch();
if (message == undefined) return;
try {
return await message.guild.channels.cache
.find((channel) => channel.name == "alien-logs")
.send({ embeds: [embed] });
} catch(error) {
console.log(error)
}
},
};

Expand Down

0 comments on commit 0aba37e

Please sign in to comment.