14.14.1 get deleted thread infos

Hi, I have this:
const { ChannelType, Thread } = require('discord.js');
module.exports = {
event: 'threadDelete',
run: async (client, thread) => {
log(thread);
},
};
const { ChannelType, Thread } = require('discord.js');
module.exports = {
event: 'threadDelete',
run: async (client, thread) => {
log(thread);
},
};
return the deleted thread id. There's a way to get some infos like: - who deleted it (member object?) - some thread info (at least the title and message count?) Thank you!
4 Replies
d.js toolkit
d.js toolkit9mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button!
probablyraging
probablyraging9mo ago
You can check the Audit Logs for a ThreadDelete event, this should have an executor (the user who deleted the thread)
vizzielli
vizzielliOP9mo ago
Hi, thanks for the reply. Do you mean manually?
d.js docs
d.js docs9mo ago
Suggestion for @vizzielli: :guide: Popular Topics: Working with Audit Logs read more
Want results from more Discord servers?
Add your server