AlexzanderFlores / WOKCommands

130 stars 60 forks source link

Error : Cannot destructure property 'guildOnly' of 'command' as it is undefined. #186

Open HeduroFR opened 3 years ago

HeduroFR commented 3 years ago

When I start a Slash Commands, I have this issue

 TypeError: Cannot destructure property 'guildOnly' of 'command' as it is undefined.
     at module.exports (E:\Contrats\SxnBot\node_modules\wokcommands\dist\command-checks\guild-only-check.js:4:13)
     at Client.<anonymous> (E:\Contrats\SxnBot\node_modules\wokcommands\dist\SlashCommands.js:68:33)
     at processTicksAndRejections (node:internal/process/task_queues:96:5)
grantgarbe commented 2 years ago

I'm having the same exact issue.

mcdaddytalk commented 2 years ago

@TikoGrantYT can you provide the command you are having issues with? I added guildOnly: true to one of my slash commands and I am not getting this error.