discordjs / Commando

Official command framework for discord.js
Apache License 2.0
497 stars 243 forks source link

TypeError: Cannot read property 'id' of undefined #400

Open ProCoda opened 3 years ago

ProCoda commented 3 years ago
Screen Shot 2021-05-22 at 7 19 40 pm

It says the error is coming from the line: const existing = this.groups.get(group.id);

aliusa93 commented 3 years ago

Same

aliusa93 commented 3 years ago

Nevermind, I just made a stupid error in index.js. That fixed my problem, but I dont really know if it will fix yours.

S222em commented 3 years ago

@ProCoda please post your .registerGroups here

.registerGroups([
        ['mod', 'Group for moderation'],
])
//this part ^