LolGamer
DIAdiscord.js - Imagine an app
•Created by LolGamer on 4/28/2024 in #djs-questions
This interaction failed but components are working
It did since the og Interaction was, well... an interaction, BaseInteraction does not have update but ChatInputCommandInteraction does
14 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 4/28/2024 in #djs-questions
This interaction failed but components are working
You are a real one Amgelo
14 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 4/28/2024 in #djs-questions
This interaction failed but components are working
Yep, passing on the confirmation rather than the original interaction solved it.
14 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 4/28/2024 in #djs-questions
This interaction failed but components are working
Oh, so, instead of passing the og interaction I should use the confirmation, correct?
14 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 4/28/2024 in #djs-questions
This interaction failed but components are working
I tried going the update way, but it says not a method
14 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
Thanks duck, you are the real deal
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
I can finally rest in peace and wake up to a grateful world
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
And oh boy it works
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
After researching how to make a for loop properly, I came up with this:
let guilds = []
client.guilds.cache.forEach((guild) => {guilds.push(guild.id)})
for(let i = 0; i < guilds.length; i++){
let guild = client.guilds.cache.get(guilds[i])
await guild.members.fetch()
console.log(i);
}
console.log(
Login successful!\n${client.user.username} is now online! Prefix is set to ${prefix});
console.log(
Bot has started, with ${client.users.cache.size} users, in ${client.channels.cache.size} channels of ${client.guilds.cache.size} guilds.);
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
Still 4
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
client.guilds.cache.forEach(async guild => {await guild.members.fetch()})
?20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
Yet it keeps saying that it only sees 4 users
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
I changed the login into
console.log("Discord.js v14.11.0");client.guilds.cache.forEach(guild => {guild.members.fetch()})
console.log(
Login successful!\n${client.user.username} is now online! Prefix is set to ${prefix}, Version: ${version});
console.log(
Bot has started, with ${client.users.cache.size} users, in ${client.channels.cache.size} channels of ${client.guilds.cache.size} guilds.);
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
Ehm, it did not work
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
Hey duck
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
Oh well, thanks duck
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
Oh, so, if I don't fetch them I won't see all of them in the cache right?
20 replies
DIAdiscord.js - Imagine an app
•Created by LolGamer on 6/21/2023 in #djs-questions
Bot not seeing all users in v14
My npm list is:
betabotgamer@ /home/pi/betabotgamer
├── @discordjs/[email protected]
├── @discordjs/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
20 replies