Krayon
Explore posts from serversBBattleMetrics
•Created by Krayon on 3/3/2024 in #support-forum
Weird Ratelimit errors
I keep getting 429 errors at XX:30 or XX:00. I have seen other ratelimit responses and they usually tell you what you exceeded but this one is just a base standard error. I keep sending requests and I always have 280+ ratelimit remaining on requests. There is no query operation running for me which runs on a 30 minute interval and is so intensive that it nukes the entire 300 ratelimit remaining instantly. I don't see what this could be but some weird issue on the BM side. Any insight would be wonderful.
The API key used in these requests is used by other bots and also for viewing the website. However I have not been using the website when these errors have occurred and other bots have not been requesting intensively either. It's always 280+ ratelimit remaining and only at XX:00 or XX:30 does it just get nuked
This specific response data comes from the /servers endpoint.
https://api.battlemetrics.com/servers?filter[organizations]=878&page[size]=100&filter[game]=rust
3 replies
DIAdiscord.js - Imagine an app
•Created by Krayon on 2/7/2024 in #djs-questions
role.setIcon
I've tried multiple URLs on this and it just never seems to work.
Is there a good way of getting this to work? I've tried just using Buffer as well but it just doesn't seem to work at all.
2 replies
DIAdiscord.js - Imagine an app
•Created by Krayon on 2/2/2024 in #djs-questions
Fetching role members
How would I go about doing this?
I have tried fetching all the members of a guild and then fetching all the roles in said guild (and vice versa). Then using role.members to check the members but it's always empty.
5 replies
DIAdiscord.js - Imagine an app
•Created by Krayon on 1/16/2024 in #djs-questions
When do Member roles cache?
I need to make sure when a member leaves a guild I can access all their role ids somehow.
Fetching all the members in the guild with 20k+ people doesn't seem like a good idea
5 replies
DIAdiscord.js - Imagine an app
•Created by Krayon on 1/30/2023 in #djs-voice
What library to use
I've been using Play-DL for a while but it keeps breaking pretty regularly. Is there a better one to use?
14 replies
DIAdiscord.js - Imagine an app
•Created by Krayon on 12/6/2022 in #djs-voice
Get AudioPlayer
How would I go about getting the AudioPlayer now that
connection.state.subscription.stop()
is no longer a thing?15 replies
DIAdiscord.js - Imagine an app
•Created by Krayon on 12/5/2022 in #djs-voice
Check if bot is in voice channel
How would you check if the bot is in a voice channel?
getVoiceChannel() isn't working for me if the connection is not subscribed to a player
5 replies