Takiyo0 / Kazagumo

A Shoukaku wrapper that have built-in queue system and other feature
MIT License
55 stars 38 forks source link

kazagumoTrack: _kazagumoOptions.defaultThumbnail in getThumbnail() is returning undefined. #8

Closed 200percentmicky closed 3 years ago

200percentmicky commented 3 years ago

When using <kazagumoPlayer>.search(), _kazagumoOptions.defaultThumbnail is returning undefined.

This is what is thrown:

TypeError: Cannot read properties of undefined (reading '_kazagumoOptions')
    at kazagumoTrack.getThumbnail (.\node_modules\kazagumo\src\kazagumoTrack.js:134:124)
    at new kazagumoTrack (.\node_modules\kazagumo\src\kazagumoTrack.js:50:14)
    at .\node_modules\kazagumo\src\kazagumoSearch.js:59:44
    at Array.map (<anonymous>)
    at kazagumoSearch.search (.\node_modules\kazagumo\src\kazagumoSearch.js:59:35)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async kazagumoPlayer.search (.\node_modules\kazagumo\src\kazagumoPlayer.js:161:16)
    at async CommandTest.exec (.\src\commands\core\test.js:64:24)
    at async CommandHandler.runCommand (.\node_modules\discord-akairo\src\struct\commands\CommandHandler.js:767:21)
    at async CommandHandler.handleDirectCommand (.\node_modules\discord-akairo\src\struct\commands\CommandHandler.js:439:20)
    at async CommandHandler.handle (.\node_modules\discord-akairo\src\struct\commands\CommandHandler.js:379:23)

Removing the variable from the URL string allows the program to continue.

Node: 16.10.0 Kazagumo: 1.0.10

Takiyo0 commented 3 years ago

can you try v1.0.11 now to see if it's fixed?

200percentmicky commented 3 years ago

can you try v1.0.11 now to see if it's fixed?

Yes, the issue has been resolved in that release. 👍