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

Infinite "Bot is thinking" if you try to execute /remove where first argument is number of song that is not present in current playing queue #64

Open
TheJoshue opened this issue Jan 5, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@TheJoshue
Copy link

Describe the bug
Bot starts thinking even after you restart it.. if you do this described in title

To Reproduce
Steps to reproduce the behavior:

  1. Boot up bot
  2. Play some music
  3. Add 1 song in queue using /play again
  4. Now you have a song playing and 1 in queue, that's it
  5. Now try to execute /remove 2
  6. Get error:
[2025-01-05 17:54:53] [#0] [discord] [interactionCreate] (⛏ MotikaCraft [1.8+]) thejoshua0thejoshua : /remove
Unhandled promise rejection: CombinedError (2)
  Received one or more errors
  1 ExpectedValidationError > s.literal(V)
  |   Expected values to be equals
  | 
  |   Expected:
  |   | null
  | 
  |   Received:
  |   | undefined
  2 ValidationError > s.string()
  |   Expected a string primitive
  | 
  |   Received:
  |   | undefined
    at _UnionValidator.handle (/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:1965:23)
    at _UnionValidator.parse (/bot/node_modules/@sapphire/shapeshift/dist/cjs/index.cjs:972:90)
    at EmbedBuilder.setDescription (/bot/node_modules/@discordjs/builders/dist/index.js:315:26)
    at Object.removeTrack (/bot/src/embeds/remove.embed.js:19:10)
    at Object.slashExecute (/bot/src/commands/remove.js:141:42)
    at exports.default (/bot/src/events/discord/interactionCreate.js:356:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Expected behavior

Screenshots
/

Version Information:

  • Node.js: 20.18.0
  • Discord.js: 14.16.3
  • Music-Disc: 3.1.0 (02a6b4c)

Additional context
/

@TheJoshue TheJoshue added the bug Something isn't working label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant