Force fetching a guild

Hey, i need to fetch a guild with its members. How can i fetch them with force?
fetch(guild: guildId, force: true);
fetch(guild: guildId, force: true);
That doesn't work for me :/
13 Replies
Almeida
Almeida•3y ago
because thats not valid syntax client.guilds.fetch({ guild: 'guild id', force: true })
Nlmyr
Nlmyr•3y ago
ok i will try this I kicked a member and setted an interval but it wont change the number
Almeida
Almeida•3y ago
what number
Nlmyr
Nlmyr•3y ago
Do you know what it can be the number of guild members
Almeida
Almeida•3y ago
any reason as to why you dont just use the GUILDS and GUILD_MEMBERS intent?
Nlmyr
Nlmyr•3y ago
i look it up wait a sec 🙂 thanks it works i forget it every time 😄
Almeida
Almeida•3y ago
you dont have to fetch the guild
Nlmyr
Nlmyr•3y ago
i store guild id's in a db with the id and iterate through it to fetch the members
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
Nlmyr
Nlmyr•3y ago
ok what would be the beste way?
Unknown User
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
mooz.tsx
mooz.tsx•3y ago
force fetch is just to way to tell djs not to check the cache which might give better results depending on intents and what are you fetching
Almeida
Almeida•3y ago
@nlmyr this is the best way