Missing command params
See original GitHub issueDescribe the bug
I downloaded this repo to see if I was doing something wrong but I get the same error, when I execute the command /play something
I get this on the console:
~/node_modules\discord.js\src\structures\CommandInteractionOptionResolver.js:77 throw new TypeError('COMMAND_INTERACTION_OPTION_NOT_FOUND', name);
The content of the dto is undefined, if I set required: false
I’m able to see it.
{
"song": undefined
}
To Reproduce Steps to reproduce the behavior:
- Download the repo and run
npm i
on sample folder. (https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/command) - Set the discord token
- Try to execute the command
/play something
- See error.
Expected behavior Be able to see on the console.log the dto object.
Desktop
- OS: Windows
- node version: 16.6.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
chromedriver missing command parameters when trying to ...
Hi Everyone, I am trying to create a session using chromedriver and W3C WebDriver specification. The issue that I'm facing is that whenever...
Read more >501: One or more parameters missing from command ... - IBM
The server received a command from the client that was missing one or more parameters. command is the command that was missing the...
Read more >How to avoid syntax error on missing command line arguments?
You can check missing argument in shell script using $# variable. For Example: #!/bin/bash #The following line will print no of argument ...
Read more >Missing command line arguments - Visual Studio Feedback
The command line for debugging can be set through Project > Properties > Debugging > Command Arguments. Does this fix your issue? Why...
Read more >IPython WebDriverException: Message: Missing Command ...
When running a crawler code I encounter a problem: WebDriverException: Message: Missing Command Parameter ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Judging by the logs you do not declare commands. If you have declared commands, but for some reason they are not visible, then try to explicitly set them in
commands
option. If you are using the sample command from the repository, then I’m not sure if you are using it correctly. Are you writing message!deploy
before using slash commands?Please read the documentation again.
It’s all, from the beginning ,
npm run start:dev
I printed out that, and I get an empty array