Im trying to make a music command on my discord.js bot but when i do /p or /play nothing happens and in the log i get the error: /app/server.js:47
9:51 AM
switch(args[0]){
9:51 AM
^
9:51 AM
9:51 AM
TypeError: Cannot read property β0β of undefined
9:51 AM
Jump Toat Object.command (/app/server.js:47:18)
9:51 AM
Jump Toat Client. (/app/server.js:591:19)
9:51 AM
at Client.emit (events.js:196:13)
9:51 AM
at MessageCreateAction.handle (/rbd/pnpm-volume/a8a346f5-394f-411b-a6d8-1d1473a604fe/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
9:51 AM
at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/a8a346f5-394f-411b-a6d8-1d1473a604fe/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
9:51 AM
at WebSocketManager.handlePacket (/rbd/pnpm-volume/a8a346f5-394f-411b-a6d8-1d1473a604fe/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31)
9:51 AM
at WebSocketShard.onPacket (/rbd/pnpm-volume/a8a346f5-394f-411b-a6d8-1d1473a604fe/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22)
9:51 AM
at WebSocketShard.onMessage (/rbd/pnpm-volume/a8a346f5-394f-411b-a6d8-1d1473a604fe/node_modules/.registry.npmjs.org/discord.js/12.2.0/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)
9:51 AM
at WebSocket.onMessage (/rbd/pnpm-volume/a8a346f5-394f-411b-a6d8-1d1473a604fe/node_modules/.registry.npmjs.org/ws/7.3.0/node_modules/ws/lib/event-target.js:125:16)
9:51 AM
at WebSocket.emit (events.js:196:13)
I am very new to coding and there might be something very wrong with the code im not sure sorry if im unspecific im very tired my glitch @ is @svedronix and the project is called doge-bots