Retrieving GuildChannel#setName ratelimit
Hi, I was wondering if there's any way to tell whether I'm being ratelimited from renaming a particular channel or not when I'm doing setName.
It would be really helpful because I have a ticket system that renames the channel when the ticket gets closed/reopen/transferred and sometime happens that it gets triggered more than 2 times per 10 minutes and I'd like to inform the user about this ratelimiting without needing to implement an internal timer if possible.
Thanks in advance
5 Replies
Rate limits are logged through the rest event
rest.on("rateLimited", console.log):interface: RateLimitData
discord.js@14.24.2
Data emitted on RESTEvents.RateLimited
:propertysignature: ClientOptions#rest discord.js@14.24.2
Options for the REST managerI tried this but this was not the error I was expecting
oh nvm I have to pass an array
what should I pass to it? docs aren't really clear tbf
Ok I figured out that ["/channels"] should be good. Thanks for the help
The issue has been marked as solved by support staff