OverleapTechnologies / LavaJS

A lightweight and Dynamic LavaLink wrapper for Discord bots. Playing music has never been easier!
https://ratulsaha.me
MIT License
14 stars 7 forks source link

Spawn Player not working... #10

Closed RoMeAh-zz closed 4 years ago

RoMeAh-zz commented 4 years ago

(node:11243) UnhandledPromiseRejectionWarning: Error: LavaClient#spawnPlayer() Could not resolve PlayerOptions.guild.


let player = await this.client.lava?.spawnPlayer ( this.client.lava , {
                guild: message.guild ,
                voiceChannel: message.member?.voice.channel ,
                textChannel: message.channel ,
                deafen: true ,
                trackRepeat: false ,
                queueRepeat: false ,
                skipOnError: true
            } );
ThatAnonyG commented 4 years ago

This is not valid issue. The LavaClient#spawnPlayer() accepts only one parameter. Just pass the PlayerOptions not the LavaClient. Thanks.