Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HeduroFR opened this issue Nov 3, 2021 · 2 comments

Comments

@HeduroFR
Copy link

HeduroFR commented Nov 3, 2021

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
Copy link

I'm having the same exact issue.

@mcdaddytalk
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants