Skip to content

Commit

Permalink
fix: don't reply to deleted stickers
Browse files Browse the repository at this point in the history
  • Loading branch information
CorwinDev authored Mar 15, 2024
1 parent 5fc5ee2 commit 24937c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/handlers/games/counting.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,14 @@ module.exports = async (client) => {
client
.on("messageDelete", async (message) => {
try {
if (message.author.bot) return;

if (message.author.bot || message.channel.type === Discord.ChannelType.DM) return;

if (
message.attachments.size > 0 ||
message.type == Discord.MessageType.ChannelPinnedMessage ||
message.stickers.size == 1
)
return;
var content = message.content.toLowerCase();
if(isNaN(content)) {
try {
Expand Down

0 comments on commit 24937c3

Please sign in to comment.