Snapper
DIAdiscord.js - Imagine an app
•Created by Snapper on 2/23/2024 in #djs-questions
message collector filter not working as intended
thank you!
15 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 2/23/2024 in #djs-questions
message collector filter not working as intended
Thank you!
15 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
unable to access cache for member.roles
NVM I figured it out. I just made something really scuffed but it works x'D
12 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
unable to access cache for member.roles
I was reading up on it and it looks like fetching over 100 guild members will leave the fetch command hanging.
I'm still not super familiar with data structures since I'm home taught. Is there a way I could fetch half the members in the collection and then fetch the other half so that I don't hit a timeout during the fetch()?
12 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
unable to access cache for member.roles
I thought I might be able to match them by id to the user, but that's also failing
12 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
unable to access cache for member.roles
so, I tried .get() and .has() but it looks like neither of them are a function of the collection that gets created when I fetch() the server members.
12 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
unable to access cache for member.roles
I'm still struggling a little bit with this one.
12 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
unable to access cache for member.roles
thank you for all the suggestions 🙂
12 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
unable to access cache for member.roles
oooh okay. I'll take a look into it for myself and come back if I still can't figure it out. Thank you for the hint!
12 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
I appreciate you Jo! You were helpful when I was first learning JS and you're still amazing today. Thanks homie
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
oh okay that actually makes a lot more sense.
What's a good way to access the guild from the discord client?
I would assume client.guild?
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
I should also mention that this method is failing as well
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
https://old.discordjs.dev/#/docs/discord.js/14.13.0/class/GuildMemberManager?scrollTo=fetch
Says it should be returning a collection
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
okay so I was able to get that working using fetch.
For some reason I'm having a similar issue using it later down the line as well trying to get the members.
Throws the error:
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
Does this mean the client channel is reading as undefined?
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
oh hang on this is a different error
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
am I using this right? I'm still getting undefined
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
I'll give that a try 🙂
35 replies
DIAdiscord.js - Imagine an app
•Created by Snapper on 11/9/2023 in #djs-questions
client.channels.cache.get(channelId) returning undefined
the variable for message is returning as undefined, so it's not able to find the message with the specific id
35 replies