Closed russjr08 closed 4 years ago
Away from my computer but I'm pretty sure this is actually due to an older version of Node.
Closing for now, and will reopen if that's not the case after testing with nodeenv.
I have the same issue, with the following versions:
node: 10.19.0 npm: 6.14.4 typeit/discord: 4.0.10 discord.js: 13.0.1
@lukasbm update your node.js to v16 and discord.ts is not maintained for v13 of discord.js.
I suggest you should upgrade to discord.ts (discordx), discordx is improved version of this package.
Version 4.0.8 (discord.js 12.3.1)
Utilizing the given
tsconfig.json
from the READMENot sure what exactly is causing this exception I'm running into... However whenever I add a function with a
@Command
decorator, I appear to lose functionality of my@On
event as well. Whenever the bot picks up a message, the following is thrown into stdout:Here is my class that is being used with
@Discord
If I comment out the on message event, I still get the exception. If I even send a message that does not have the & prefix, the exception is still printed. If I comment out the
@Command
event, then all is fine.I'll definitely admit I am newer to TypeScript, so it could be something I am doing wrong myself but... I've stuck with pretty much everything from README at this point.