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,
|
||||
): GenericTryHandler {
|
||||
if (this.voiceConnection !== undefined) {
|
||||
this.logger.debug(
|
||||
'Avoided joining the voice channel because voice connection is already defined',
|
||||
);
|
||||
return {
|
||||
success: true,
|
||||
reply: {},
|
||||
@ -155,6 +158,7 @@ export class DiscordVoiceService {
|
||||
}
|
||||
|
||||
this.voiceConnection.destroy();
|
||||
this.voiceConnection = undefined;
|
||||
return {
|
||||
success: true,
|
||||
reply: {},
|
||||
|
Loading…
Reference in New Issue
Block a user