IncendiumSkye
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
Ah I see, that gives me a little more insight on the proces then. It preloads data and doesnt get updated as I update the database.....dang it. Welp, it was worth a try> i will look into the autocomplete approach. Thanks yall!
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
Hmmm I dont think this will accomplish what im going for. Well, thank you all for your help. I'll keep looking then. I feel like I'm very close to getting this to work, just need to find a way to resolve the promise before trying to add the command.
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
so it would be able to pick from my list of characters from the database? This feels like it might lead to the same issue
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
Thought choices was the only option for a choosable string option
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
ill look into that! Sorry I was jumping back and forth
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
there is when you are loading from a database. Prisma takes a moment to load all the data i need.
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
the client export was a previous issue i hadnt removed, my bad
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
So the main issue im noticing which is why I it here is that the command being loaded is a promise. That is what is stopping the command from being properly loaded. I had figured that part out. I was wondering if anyone here knew of a good way to handle that situation
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
It is undefined when loading into client.commands. i could use some help with where to go from there
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
I dont mean to be rude, but I have been debugging. If I hadnt been trying for a while now I wouldnt have posted it in here
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
helpful...
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
my other commands work
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
okay so heres one small isue with this line of thinking
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
gotcha so it would be in a configuration file probably right?
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
its in the index.js. Im not sure what you mean
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
good catch on the avatar. I must have put that there yesterday when I got a little frustrated. Moved that right below where client was declared instead
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
except the setAvatar. I did add that myself. I didn't know client.once is called every time. Thats on me, ive only been looking into the docs a couple days
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
index.js specifically is directly from the docs
101 replies
DIAdiscord.js - Imagine an app
•Created by IncendiumSkye on 7/19/2024 in #djs-questions
Handling commands with promises
ah i see
and some of it, not all. I do see that the name of the command when its loading client.commands.set is undefined
101 replies