Tomato6966 / Musicium

An advanced Discord Music Bot with a Dashboard, using distube.js.org having an interactive button & menu system and many features! Supported Features: Spotify • YouTube • SoundCloud • Live Stream • Audio Filtering • DJ Roles • Autoplay • Autoresume • Dashboard + Live Queue • ...
https://musicium.eu
GNU General Public License v2.0
296 stars 310 forks source link

TypeError: client.settings.get(...).map is not a function #50

Closed x7s closed 3 years ago

x7s commented 3 years ago

https://github.com/Tomato6966/Musicium/blob/87cecd18c478a60f70c7c52a98f77fee8d896a37/handlers/distubeEvent.js#L528

TypeError: client.settings.get(...).map is not a function
    at receiveQueueData (home\runner\Musicium-main\handlers\distubeEvent.js:528:59)
    at DisTube.<anonymous> (home\runner\Musicium-main\handlers\distubeEvent.js:36:22)
    at DisTube.emit (node:events:394:28)
    at QueueManager.emit (home\runner\Musicium-main\node_modules\distube\dist\core\DisTubeBase.js:23:29)
    at QueueManager._handleSongFinish (home\runner\Musicium-main\node_modules\distube\dist\core\manager\QueueManager.js:115:22)    
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
 [antiCrash] :: Uncaught Exception/Catch (MONITOR)
Tomato6966 commented 3 years ago

Do this: client.settings.get(newQueue.id, djroles).array().map(r => <@&${r}>);