ice2morrow
DIAdiscord.js - Imagine an app
•Created by ice2morrow on 12/11/2023 in #djs-questions
Checking a Category Channel for full?
I have a Category Channel hidden from members that I 'archive' channels into when they fall below a certain activity threshold. I've been bitten before because this category filled up and the move failed and threw an error.
I have since implemented it so it attempts the move -> catches the error -> checks the error to see if its related to the channel being full -> move channel to a different category.
My question is: Is it possible to somehow check the Category Channel for fullness before attempting to move so I can resolve the error before it happens? I don't see anything in the docs pertaining to checking for fullness
9 replies