<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
- 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!There is a strict rate limit of 2 edits per 10 minutes for channels
so discord basically broke the entire existence of ticket system 💀
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.
Discord didn't break anything, you are doing something that is not supposed to be done that often
so whats the workaround on the big ticket bots thats verified
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?
to add the closed tag to the channel name
and change permissions
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
when they added the ratelimit
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