I'm getting two warnings in my code that I can't resolve. I'm writing a discord bot, using discord.js and axios.
The first warning is this: https://imgur.com/a/WD0IM
The second one: https://imgur.com/a/IDEXm (the hidden part is .then)
I have ECMAScript 6 enabled, NodeJS code assistance enabled and node-DefinitelyTyped enabled.
How should I fix those issues?
(I'm using PHPStorm, but since it a JS problem I decided to write here.)