question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing command params

See original GitHub issue

Describe 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:

  1. Download the repo and run npm i on sample folder. (https://github.com/fjodor-rybakov/discord-nestjs/tree/master/packages/sample/command)
  2. Set the discord token
  3. Try to execute the command /play something
  4. 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:closed
  • Created 2 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
fjodor-rybakovcommented, Nov 18, 2021

It’s all, from the beginning , npm run start:dev I printed out that, and I get an empty array

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.

0reactions
CorbalanLeandrocommented, Nov 17, 2021

It’s all, from the beginning , npm run start:dev I printed out that, and I get an empty array

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found