If you call the constructor with a token and a client, there is no catch for the postStats() in the setInterval. This doesn't affect much, but it does make node print the deprecation warning for unhandled promise rejections every time DBL returns a 500 error.
IMO, the library should either let the user provide a callback for errors or console.error() them.
If you call the constructor with a token and a client, there is no catch for the
postStats()
in thesetInterval
. This doesn't affect much, but it does make node print the deprecation warning for unhandled promise rejections every time DBL returns a 500 error.IMO, the library should either let the user provide a callback for errors or
console.error()
them.