mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 15:18:21 +00:00
fix: don't reply to deleted stickers
This commit is contained in:
parent
5fc5ee2da2
commit
24937c3918
1 changed files with 8 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue