appujet / lavamusic

lavalink music bot base in lavalink-client and discord.js v14
https://appujet.github.io/lavamusic/
GNU General Public License v3.0
574 stars 490 forks source link

Error after type /play #458

Closed WolverStones closed 1 year ago

WolverStones commented 1 year ago

When I use the command /play, an error message starts spamming in the console and the song selection doesn't show up

I use commit: https://github.com/brblacky/lavamusic/commit/34e51e6e96d7008e5623ef609cdaa6491290d91b

[9. 5. 2023] [18:51:10] [antiCrash.js] [Lavamusic] » ✖ error Uncaught Exception thrown: TypeError: Cannot read properties of null (reading 'id') at Queue.create (file:///C:/Users/pamul/Desktop/lavamusic-main/dist/structures/Queue.js:25:34) at InteractionCreate.run (file:///C:/Users/pamul/Desktop/lavamusic-main/dist/events/client/InteractionCreate.js:25:54) at Lavamusic.<anonymous> (file:///C:/Users/pamul/Desktop/lavamusic-main/dist/structures/Lavamusic.js:114:60) at Lavamusic.emit (node:events:513:28) at InteractionCreateAction.handle (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12) at module.exports [as INTERACTION_CREATE] (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31) at WebSocketShard.onPacket (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:494:22) at WebSocketShard.onMessage (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:328:10) at callListener (C:\Users\pamul\Desktop\lavamusic-main\node_modules\ws\lib\event-target.js:290:14) [9. 5. 2023] [18:51:10] [aitiCrash.js] [Lavamusic] » ✖ error Uncaught Exception thrown: TypeError: Cannot read properties of null (reading 'id') at Queue.create (file:///C:/Users/pamul/Desktop/lavamusic-main/dist/structures/Queue.js:25:34) at InteractionCreate.run (file:///C:/Users/pamul/Desktop/lavamusic-main/dist/events/client/InteractionCreate.js:25:54) at Lavamusic.<anonymous> (file:///C:/Users/pamul/Desktop/lavamusic-main/dist/structures/Lavamusic.js:114:60) at Lavamusic.emit (node:events:513:28) at InteractionCreateAction.handle (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12) at module.exports [as INTERACTION_CREATE] (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36) at WebSocketManager.handlePacket (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31) at WebSocketShard.onPacket (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:494:22) at WebSocketShard.onMessage (C:\Users\pamul\Desktop\lavamusic-main\node_modules\discord.js\src\client\websocket\WebSocketShard.js:328:10) at callListener (C:\Users\pamul\Desktop\lavamusic-main\node_modules\ws\lib\event-target.js:290:14)

ViO57nN V3EFJ4G

appujet commented 1 year ago

Fixed issue