FastLink version
2.4.1-rc.1
Description
this leaves the bot connected to a voice channel
const payload = {
op: 4,
d: {
guild_id: guildId,
channel_id: null,
self_mute: false,
self_deaf: false,
},
};
client.guilds.cache.get(guildId).shard.send(payload);
setting channel_id here to null successfully disconnects the bot from the voice channel, however the bot has a 50% chance of blowing up with Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'queue') at update (\node_modules\@performanc\fastlink\index.js:248:29) when trying to add a song to the queue after creating and connecting the player again. Feels like there is a race condition somewhere
- player.destroy();
- send disconnectPayload (channel_id set to null)
- player.createPlayer();
- player.connect
- add something to queue (sometimes blows up here on first pass, sometimes i repeat 1-5 again then it blows up)
How would you recommend disconnecting the bot from a voice channel? I'm not sure if im missing something obvious
Thank you for your time.
FastLink version
2.4.1-rc.1
Description
this leaves the bot connected to a voice channel
setting channel_id here to null successfully disconnects the bot from the voice channel, however the bot has a 50% chance of blowing up with
Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'queue') at update (\node_modules\@performanc\fastlink\index.js:248:29)when trying to add a song to the queue after creating and connecting the player again. Feels like there is a race condition somewhereHow would you recommend disconnecting the bot from a voice channel? I'm not sure if im missing something obvious
Thank you for your time.