discord.Colors class question
Hello , kinda interested how should i go about this code :
How could i create setChoices with all colors inside discord.Colors class so i could get them all in my choices?
31 Replies
- What's your exact discord.js
npm list discord.js
and node node -v
version?
- Not a discord.js issue? Check out #other-js-ts.
- Consider reading #how-to-get-help to improve your question!
- Explain what exactly your issue is.
- Post the full error stack trace, not just the top part!
- Show your code!
- Issue solved? Press the button!Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Yes i know that , i'd love to omit some colors as they're not so interesting
option.setName isnt slash name , does it have to be lower case also ?M
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
If i access Colors.Aqua
How do i get the name itself ?:
kinda dumb question i guess
Also.. why would this command doesnt respond at all ?
this is my interaction.create handler
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Commented all of the in the slashcommandBuilder() except set name & description and it didnt just gave app didnt respond. if i use the same ping.ts command it works.
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
create-event.ts
ping.ts
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
app.ts -> command handler
Yes.
app.ts also
Also got index.ts file inside commands folder to export all commands.
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Oh fucking hell. Not like i'd surpass it today as its 1:44 am
Good to know anyways
So i can register same cmd 1000000 times?
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
If you aren't getting any errors, try to place
console.log
checkpoints throughout your code to find out where execution stops.
- Once you do, log relevant values and if-conditions
- More sophisticated debugging methods are breakpoints and runtime inspections: learn moreSo it gets called.
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Sorry.:D
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Will have to do so.
Can i have few questions for u ?
ds.js related
not topic related also , not like i didnt asked something off-topic yet:D
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Well , its kinda hard to actually get answers from someone who knows ts
ask meWhat the fuck am i doing
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
dc.js related ts questions
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
questions*
1. So basically , i'd love to know if u could point me to direction where i could somehow avoid using this in every file where i do use prisma
const prisma = new PrismaClient();
Is there some sort of global declaractions in typescript?
2. Would it be efficient to create some sort of wrapper around my PrismaClient or its inefficient and just should keep using the default prismaclient => actually i've meant some sort of "API" which is accesible only inside my dc.js app.
3. Would have tons more but i think u'd love to sleep
1. Tried global.ts.d but it didnt work:(
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View
Oh.
will try that.
thanks a lot man
for your time
Unknown User•15mo ago
Message Not Public
Sign In & Join Server To View