how to remove a build in discord message
how could i have the bot delete this message?
I already have the line of code to delete a message but how do i target this one specifically?
7 Replies
- 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!
- ✅
Marked as resolved by OPplease do ping with a response
which message?
the thread create one?
You can listen to messageCreate for a message with type
ThreadCreated
yes sorry, should have mentioned that specifically!
thank you!
i assume
that i can make it so it only deletes it in a specific channel too right?
yes, you can check using message.channel
makes sense, appreciate both of your help