#API error 50035 and DICT_TYPE_CONVERT error

21 messages · Page 1 of 1 (latest)

warm tangle
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

pure sage
#

can you send your commands data?

#

I mean the one in the commands files

quasi forge
#

Don’t JSON.stringify it. .toJSON() it, you need actual objects not a string

pure sage
#

command.data.toJSON()

quasi forge
#

Then one of your commands doesn’t export a data property (assuming that you get a can’t read properties of undefined (reading toJSON) error)

#

If not show the error you get and the code you use with toJSON

#

But stringifying them definitely is wrong.

#

Show one of your commands? You seem to already do…

#

You export an object. It has a data property. So you export a data property

quasi forge
#

Then show your actual error please (including stacktrace)

#

That is from your JSON.stringify though which I already told you won’t ever work, not when you do .toJSON() (which you said you did too and had another error). Show that error

soft furnace
#

What’s the folder you’re inside

#

Like the folder containing your commands

quasi forge
#

command not commands. You try to push properties of your array into your array

soft furnace
#

Ah

#

Lol

quasi forge
#

Short answer: Nowhere.
Longer answer: if you have questions you need answered about them ddevs in #useful-servers would be the way to go.

pure sage
#

on the developer portal

#

@warm tangle (sorry for pinging)