music: fix leave message

This commit is contained in:
Cynthia Foxwell 2022-04-18 23:03:45 -06:00
parent 4c7b35b13c
commit f45c24dcfc

View file

@ -129,7 +129,7 @@ async function createVoiceConnection(guild_id, voice_id, text_id) {
); );
} else { } else {
await connection.disconnect(); await connection.disconnect();
if (connection._music_leave === false) { if (!connection._music_leave) {
await hf.bot.guilds await hf.bot.guilds
.get(guild_id) .get(guild_id)
.channels.get(text_id) .channels.get(text_id)