Skip to content
← Back to Community
Code is not working discord.js = scratch for discord = s4d
Profile icon
EkylytraRobot

Can you help me? Error is node:104 MaxListenersExceededWarning This is because of message max was 10 but i used 11

Answered by xfinnbar [earned 5 cycles]
View Answer
Voters
Profile icon
Thesheriff
Profile icon
EkylytraRobot
Comments
hotnewtop
Profile icon
EkylytraRobot

Yes buy how to fix the real problem

Profile icon
xfinnbar

You can't, it's not your fault. Scratch for Discord is broken. @EkylytraRobot

Profile icon
EkylytraRobot

@xfinnbar I figured it out

Profile icon
EkylytraRobot

@EkylytraRobot require('events').EventEmitter.defaultMaxListeners = 0

Profile icon
ColinSelina
Profile icon
QuickV

I recommend using Python or JavaScript to make discord bots...

Profile icon
xfinnbar

Don't use Scratch for Discord, it's outdated. If you are serious about making a Discord bot, I recommend you learn Python or JavaScript properly.