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

TypeError: privateMap.get is not a function in discord-player@5.2.0^ #981

Closed
GaryCraft opened this issue Jan 10, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@GaryCraft
Copy link

GaryCraft commented Jan 10, 2022

Describe the bug
Queue.addTracks()
and
Queue.addTrack()
Do not work

To Reproduce
Steps to reproduce the behavior:
Create a project
Install discord-player library as Normal
Use methods described above
Run

Expected behavior
Tracks get added to the Queue and the corresponding event gets emitted

Resulting Behaviour
Error gets Thrown

TypeError: privateMap.get is not a function
    at __classPrivateFieldGet (--\git\BOT\node_modules\tslib\tslib.js:250:27)
    at Queue.addTrack (--\git\BOT\node_modules\discord-player\dist\Structures\Queue.js:237:48)
    at Object.<anonymous> (--\git\BOT\src\interactions\Music\play.js:87:28)
    at Generator.throw (<anonymous>)
    at rejected (G:\pro--\git\BOT\src\interactions\Music\play.js:6:65)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Screenshots
image

Please complete the following information:

  • Node Version: v16.13.0
  • Discord Player Version: 5.2.0
  • Discord.js Version: 13.5.1

Additional context

Just Updated the Bot both to TypeScript and a new Version of discord-player

@GaryCraft GaryCraft added the bug Something isn't working label Jan 10, 2022
@GaryCraft
Copy link
Author

This Error does not occur on Version 5.1.0 of discord-player

@GaryCraft GaryCraft changed the title TypeError: privateMap.get is not a function TypeError: privateMap.get is not a function in discord-player@5.2.0 Jan 15, 2022
@GaryCraft GaryCraft changed the title TypeError: privateMap.get is not a function in discord-player@5.2.0 TypeError: privateMap.get is not a function in discord-player@5.2.0^ Mar 7, 2022
@twlite
Copy link
Collaborator

twlite commented Aug 4, 2022

re-open if this still persists

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

2 participants