Sky
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
now to make sure this only happens once per user and it's good to go for tomorrow 😄
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
ah, thank you!
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
but ofc when I send the password again, it's fine
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
undefined
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
still undefined :/
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
const member = guild.members.fetch(message.author.id);
?34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
that caches the roles too?
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
if (message.channel.type == ChannelType.DM)
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
yes
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
(or well, right after the DM is sent so it can grab the right roles from the right person)
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
but how do I make sure the roles are cached then at the start and not after the command fails once?
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
fair
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
..?
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
I'm using message.author?
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
I already have
let member = guild.members.cache.get(message.author.id);
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
I'd need to fetch members? HM, I've not touched any of that part of the code 🤔
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
Oh rip is it 14? Apologies, I've not touched this in basically exactly a year and just saw "V10" in the file 😅
34 replies
DIAdiscord.js - Imagine an app
•Created by Sky on 5/28/2024 in #djs-questions
V10, roles cache pulling only "undefined" roles until the code is ran again
The frustrating part is that it works perfectly, you just need to input the password twice...
34 replies