JMPerez / spotify-web-api-js

A client-side JS wrapper for the Spotify Web API

Home Page:https://jmperezperez.com/spotify-web-api-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read properties of undefined (reading 'volume')

EddiesLife247 opened this issue · comments

Describe the bug
A clear and concise description of what the bug is.
When running anything todo wiith GuildQueue i keep getting this>
let guildQueue = client.player.getQueue(message.guild.id); has been added to my player script.

To Reproduce
Steps to reproduce the behavior:
Cannot read properties of undefined (reading 'volume')
TypeError: Cannot read properties of undefined (reading 'volume') at Object.exports.run (C:\ModManager\commands\advmusic.js:105:45) at module.exports (C:\ModManager\events\messageCreate.js:145:15) at Client.emit (node:events:390:28) at MessageCreateAction.handle (C:\ModManager\node_modules\discord.js\src\client\actions\MessageCreate.js:23:14) at Object.module.exports [as MESSAGE_CREATE] (C:\ModManager\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32) at WebSocketManager.handlePacket (C:\ModManager\node_modules\discord.js\src\client\websocket\WebSocketManager.js:350:31) at WebSocketShard.onPacket (C:\ModManager\node_modules\discord.js\src\client\websocket\WebSocketShard.js:443:22) at WebSocketShard.onMessage (C:\ModManager\node_modules\discord.js\src\client\websocket\WebSocketShard.js:300:10) at WebSocket.onMessage (C:\ModManager\node_modules\ws\lib\event-target.js:199:18) at WebSocket.emit (node:events:390:28)`

Expected behavior
Do action requested.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
OS: Windows

Smartphone (please complete the following information):
N/A

Additional context
Code in use is:
https://pastebin.com/yG3PiAj1