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

Play Command - Error #35

Closed
saiteja-madha opened this issue Oct 2, 2021 · 0 comments · Fixed by #37
Closed

Play Command - Error #35

saiteja-madha opened this issue Oct 2, 2021 · 0 comments · Fixed by #37
Labels
bug Something is verified not to work

Comments

@saiteja-madha
Copy link
Owner

Describe the bug
Play command error out if incorrect song is selected

To Reproduce
Steps to reproduce the behavior:

  • use play command
  • out of 5 options to select a song enter some random string

Expected behavior
Message to be displayed showing incorrect input

Error Log

RangeError: Provided argument must be present.
    at Function.validate (/root/discord-js-bot/node_modules/erela.js/dist/structures/Utils.js:46:19)
    at Queue.add (/root/discord-js-bot/node_modules/erela.js/dist/structures/Queue.js:38:33)
    at Play.messageRun (/root/discord-js-bot/src/commands/music/play.js:142:22)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Play.execute (/root/discord-js-bot/src/structures/Command.js:170:5)
    at async module.exports (/root/discord-js-bot/src/events/message/messageCreate.js:29:9)

If possible

  • Bot version: 3.3.0
@saiteja-madha saiteja-madha added the bug Something is verified not to work label Oct 2, 2021
saiteja-madha added a commit that referenced this issue Oct 5, 2021
@saiteja-madha saiteja-madha mentioned this issue Oct 5, 2021
@saiteja-madha saiteja-madha linked a pull request Oct 5, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is verified not to work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant