How do i find out how long until a queue request until send and how to cancel a queue request
I am making a Temp Voice Channel Bot.
If my bot renames the channel more then 2 Times per 10 minutes its getting queued.
How do i find out how long until it get send to the Discord API?
And how to cancel the first request (for the same channel) if a second request for renaming the channel gets queued?
8 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!
- ✅
Marked as resolved by OPi am not sure why a temporary voice channel bot would need to change channels that often
anyways, you can make requests reject if rate limits are encountered with the
rejectOnRateLimit
rest option under new Client({..., rest: {...}})
I have database where user can store up to 10 voicechannel and can load the slots/presets and I want to tell the user if the channel got rate limit if he wants to wait or want to have the slot/preset in a fresh voice channel loaded
optimally, you should just not allow people to freely edit topic and channel name
i understand that it's cool to let the user customize, but that is what voice channel status is made for
Can you edit the voice channel status with a bot account somehow?
I don't think you can.
the endpoint returns missing access - could be that the bot needs to be connected to the vc - which i cannot test unfortunately
/channels/:id/voice-status
with {"status":"test <a:Wiggle:1101907882364117113>"}
is what's happening in the clientI gone try it out