War
DIAdiscord.js - Imagine an app
•Created by War on 1/15/2024 in #djs-questions
Collectors crashing bot
In this case when you:
1. click on button (modal shows up)
2. cancel modal
3. click on button again (modal shows up)
4. fill modal and submit
Handled error:
unhandled error:
8 replies
DIAdiscord.js - Imagine an app
•Created by War on 1/14/2024 in #djs-questions
RoleSelectMenuInteraction Component Collector not working
7 replies
DIAdiscord.js - Imagine an app
•Created by War on 9/17/2023 in #djs-questions
Cache growing too huge too fast for interacting with members in a role
I have a bot that sends money to a specified role at a certain time of the day. I'd like to send money to all the individuals inside a role.
Currently I'm using the following fetches per guild:
This unfortunatly loads all the thousands of users into the bot, making it crash. Is there a more efficient way to get the members of a role? I only need the userIDs of people inside a role without caching all the members on a guild.
Thank you for the help!
110 replies
DIAdiscord.js - Imagine an app
•Created by War on 8/18/2023 in #djs-questions
Best way to get userIds in a role without hitting API limit Hourly
I have to get all the userIDs that have a role in a guild on an Hourly basis. It only returns the members in cache that have it. In order to get the updated userIDs every hour:
- Do I have to fetch all members ever hour?
- What if the role has more than 1000 people?
6 replies