Sn4red
Sn4red
DIdiscord.js - Imagine ❄
Created by Sn4red on 1/3/2025 in #djs-questions
Is there a problem if I use 'force: true' everytime I want to fetch a user?
Okey so I removed the force attribute and added GuildMembers. It works fine! I was just concerned that later on I would have problems because of the number of requests. Thank you guys!
8 replies
DIdiscord.js - Imagine ❄
Created by Sn4red on 1/3/2025 in #djs-questions
Is there a problem if I use 'force: true' everytime I want to fetch a user?
Yeah so my initial approach was to not to apply the force attribute, but I had issues with it. For example: If the role is added to the user from server X, and the user executes the command from server Y, the user's info is not properly obtained (not updated). What solves the issue is reuse the command on the server X or restart the bot, which is not preferable. That's why I was using force: true. It solves the problem but in the long run I don't want to get issues if the bot gets a lot of traffic. I will try to add the GuildMembers intent to see if that fixes the problem!
8 replies
DIdiscord.js - Imagine ❄
Created by Sn4red on 1/3/2025 in #djs-questions
Is there a problem if I use 'force: true' everytime I want to fetch a user?
discord.js 14.16.3 node 20.14.0
8 replies