mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-27 11:51:57 +01:00
leave discord channel when stopped
This commit is contained in:
parent
e3e6768481
commit
eb3928bd02
@ -139,7 +139,9 @@ function handleChannelMessage(message) {
|
||||
} else if (message.content.startsWith(CONFIG["discord-prefix"] + 'stop')) {
|
||||
getAudioDispatcher().pause()
|
||||
setAudioDispatcher(undefined)
|
||||
|
||||
discordClient.user.client.voice.connections.forEach((element) => {
|
||||
element.disconnect();
|
||||
});
|
||||
|
||||
} else if (message.content.startsWith(CONFIG["discord-prefix"] + 'help')) {
|
||||
const reply = new Discord.MessageEmbed()
|
||||
|
Loading…
Reference in New Issue
Block a user