#Error Handling W API

11 messages · Page 1 of 1 (latest)

forest stirrup
#

• 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.

formal oak
formal oak
# formal oak

The bot will basically crash, I've tried to put a handler in the catch though, it doesn't seem to be working.

wooden nest
#

This is unrelated to discord.js

formal oak
#

How might it not be related?

wooden nest
#

try/catch is basic js, and even what you are using it for isn't djs

formal oak
#

Yeah, I've attempted to use the try/catch though, it doesn't seem to be working, was wondering if there was a different issue?

wooden nest
#

You didn't even explain how it isn't working

#

Doubt it just crashes, surely there is an error?

formal oak
# wooden nest You didn't even explain how it isn't working

The command is used to ban a player, when a user gives someone's gamer tag, it posts it through the Nitrado API. When they enter the information correctly, it works fine. Though, if they provide a gamertag which doesn't exist, the app crashes.

As for an error, the only message I'm getting from the console is:
[nodemon] app crashed - waiting for file changes before starting...

wooden nest
#

So this doesn't sound related to discord.js
Better to ask in #869652447881207858 or #useful-servers