mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-04 01:50:08 +00:00
Fixed voice_connection.stopPlaying
Now unpipes before destroying
This commit is contained in:
@@ -150,6 +150,7 @@ export default class Server extends Equality {
|
||||
this.eventStopSpeaking(user);
|
||||
|
||||
channel.speaking.add(user);
|
||||
user.voiceChannel = channel;
|
||||
return true;
|
||||
}else{
|
||||
// bad
|
||||
@@ -161,6 +162,7 @@ export default class Server extends Equality {
|
||||
for(let chan of this.channels.getAll("type", "voice")){
|
||||
if(chan.speaking.has(user)){
|
||||
chan.speaking.remove(user);
|
||||
user.voiceChannel = null;
|
||||
return chan;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@ export default class User extends Equality{
|
||||
since : null,
|
||||
channel : null
|
||||
};
|
||||
this.voiceChannel = null;
|
||||
}
|
||||
|
||||
get avatarURL(){
|
||||
|
||||
Reference in New Issue
Block a user