Androz2091 / discord-giveaways-bot

🎁Giveways Bot using the discord-giveaways package
ISC License
202 stars 167 forks source link

Weird error. #67

Closed Alcadramin closed 3 years ago

Alcadramin commented 3 years ago
triggerUncaughtException(err, true /* fromPromise */);
          ^

TypeError [ERR_INVALID_ARG_TYPE]: The "emitter" argument must be an instance of EventEmitter. Received type string ('raw')
    at new NodeError (node:internal/errors:278:15)
    at eventTargetAgnosticAddListener (node:events:775:11)
    at Function.on (node:events:856:3)
    at GiveawaysManager._init (/node_modules/discord-giveaways/src/Manager.js:464:21) {
  code: 'ERR_INVALID_ARG_TYPE'
}

I get this I have no idea. Solved the previous problem it was about my class.

Androz2091 commented 3 years ago

Are you using the giveaways-bot or are you trying to implement its feature in another bot? If you've modified the code, please send it so we can help you

Alcadramin commented 3 years ago

I'm just using the library, I guess this is the wrong repo my bad! I'll send it soon thanks for reply.

Androz2091 commented 3 years ago

Yes use https://github.com/Androz2091/discord-giveaways instead