AlexzanderFlores / WOKCommands

132 stars 61 forks source link

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

Open HeduroFR opened 2 years ago

HeduroFR commented 2 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)
Grantie 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.