#Error Handling W API
11 messages · Page 1 of 1 (latest)
The bot will basically crash, I've tried to put a handler in the catch though, it doesn't seem to be working.
This is unrelated to discord.js
How might it not be related?
try/catch is basic js, and even what you are using it for isn't djs
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?
You didn't even explain how it isn't working
Doubt it just crashes, surely there is an error?
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...
So this doesn't sound related to discord.js
Better to ask in #869652447881207858 or #useful-servers