mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-23 18:21:55 +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')) {
|
} else if (message.content.startsWith(CONFIG["discord-prefix"] + 'stop')) {
|
||||||
getAudioDispatcher().pause()
|
getAudioDispatcher().pause()
|
||||||
setAudioDispatcher(undefined)
|
setAudioDispatcher(undefined)
|
||||||
|
discordClient.user.client.voice.connections.forEach((element) => {
|
||||||
|
element.disconnect();
|
||||||
|
});
|
||||||
|
|
||||||
} else if (message.content.startsWith(CONFIG["discord-prefix"] + 'help')) {
|
} else if (message.content.startsWith(CONFIG["discord-prefix"] + 'help')) {
|
||||||
const reply = new Discord.MessageEmbed()
|
const reply = new Discord.MessageEmbed()
|
||||||
|
Loading…
Reference in New Issue
Block a user