mirror of
https://github.com/informaticker/discord-jellyfin-bot.git
synced 2024-11-25 02:51:57 +01:00
parent
1e70209f2d
commit
92021dd94e
@ -39,6 +39,9 @@ export class DiscordVoiceService {
|
|||||||
member: GuildMember,
|
member: GuildMember,
|
||||||
): GenericTryHandler {
|
): GenericTryHandler {
|
||||||
if (this.voiceConnection !== undefined) {
|
if (this.voiceConnection !== undefined) {
|
||||||
|
this.logger.debug(
|
||||||
|
'Avoided joining the voice channel because voice connection is already defined',
|
||||||
|
);
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
reply: {},
|
reply: {},
|
||||||
@ -155,6 +158,7 @@ export class DiscordVoiceService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.voiceConnection.destroy();
|
this.voiceConnection.destroy();
|
||||||
|
this.voiceConnection = undefined;
|
||||||
return {
|
return {
|
||||||
success: true,
|
success: true,
|
||||||
reply: {},
|
reply: {},
|
||||||
|
Loading…
Reference in New Issue
Block a user