client.on("threadUpdate", async (thread, oldThread) => {
if (thread.archived && !oldThread.archived) {
await thread.setArchived(false);
}
});
client.on("threadUpdate", async (thread, oldThread) => {
if (thread.archived && !oldThread.archived) {
await thread.setArchived(false);
}
});