fix: don't reply to deleted stickers

This commit is contained in:
Corwin 2024-03-15 09:58:45 +01:00 committed by GitHub
parent 5fc5ee2da2
commit 24937c3918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 {