Closed Unknown-user-dev closed 1 year ago
cache ?
discordjs-selfbot-v13 dont have a client.on("......") for deleted message ?
messageDelete ?
i will try wait
like that ?
client.on("messageDelete", async message => { if (config.antidelete === false) return const channel = client.channels.cache.get(message.channel.id) const user = message.author const content = message.content
message.channel.send(`${user}, ${content}`)
})
check message.partial
first
like : if (message.partial) await message.fetch();
you cannot fetch a deleted message
like i want to do a message sniper, idk if u know, but i know a bot, when u do +snipe on a deleted message the bot will reply the deleted message
that's when the message is still cached
okay thanks !
Which package has the bugs?
The core library
Issue description
1 : Type !snipe 2 : Get the channel 3 : get the deleted message 4 : send the deleted message
But, i search how to get a deleted message/image
Code sample
No response
Package version
2.10.1
Node.js version
16.13.0
Operating system
Windows
Priority this issue should have
Low (slightly annoying)
Checklist
Additional Information
No response