Im working on a discord bot that works with threads
but I ran into an issue
In certain cases id like the bot to delete a thread but there is no documentation on deleting threads. I saw stuff about locking threads but theres nothing about directly deleting them
CodePudding user response:
Alright im an idiot I missed it Anyways heres the solution
await ex_thread.delete();
CodePudding user response:
It is in the documentation of discord.js :
https://discordjs.guide/popular-topics/threads.html#thread-related-gateway-events https://discord.js.org/#/docs/main/stable/class/ThreadChannel?scrollTo=delete