<Interaction>.channel.edit stops working after 2 edits

I'm making a ticket system in my bot, and i noticed a problem. Where when i edit the channel 2 times (closing the ticket then reopening it) Bot starts ignoring edits for this channel, no errors, no client.rest.on("rateLimited") output, nothing. Just stops working. I tried to change the channel name with eval, nothing, on new channel. Works, but only 2 times
11 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!
NyR
NyR9mo ago
There is a strict rate limit of 2 edits per 10 minutes for channels
kotek
kotekOP9mo ago
so discord basically broke the entire existence of ticket system 💀
d.js docs
d.js docs9mo ago
Channel name and topic changes are limited to roughly 2 times per 10 minutes. If your channel changes are not going through, this might be why.
NyR
NyR9mo ago
Discord didn't break anything, you are doing something that is not supposed to be done that often
kotek
kotekOP9mo ago
so whats the workaround on the big ticket bots thats verified
NyR
NyR9mo ago
Most Bot's don't go around changing channel names more than twice within 10 minutes. And why do you feel the need to do so anyway? What does it have to do with the ticket system?
kotek
kotekOP9mo ago
to add the closed tag to the channel name and change permissions
NyR
NyR9mo ago
You can change permissions np, this specific limit is only for changing names and topics of the channel, and there are other ways to indicate channel is closed Just make sure you are not editing it more than twice, however that may be Channel names/topics aren't meant to be edited that often
kotek
kotekOP9mo ago
when they added the ratelimit
NyR
NyR9mo ago
Afaik, it has always been like that. And this is not the place to discuss this, if you have questions/issues about rate limits and API and such, and you can ask about it in ddevs server #useful-servers
Want results from more Discord servers?
Add your server