16 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!
- ✅
Marked as resolved by OPpart of register-commands.js
why is this in #djs-voice
result: The sum is NaN
oh- i haven't noticed it
mb mb mb
you are adding numbers with null
how is that supposed to work
then what do i do for optional numbers
nevermind you can in fact add numbers with null in javascript
;-;
i did .value
it worked well
use the number getter as told
Why not just use getNumber?
at least try it
.?value
okay
one min
worked
but why didn't .value work
The difference is that
getNumber
gives you null which is 0 when added, while ?.value
gives you undefined which will be NaN when addedgot it sir!
thanks