mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Fixed voice_connection.stopPlaying
Now unpipes before destroying
This commit is contained in:
@@ -182,6 +182,7 @@ var Server = (function (_Equality) {
|
||||
this.eventStopSpeaking(user);
|
||||
|
||||
channel.speaking.add(user);
|
||||
user.voiceChannel = channel;
|
||||
return true;
|
||||
} else {
|
||||
// bad
|
||||
@@ -206,6 +207,7 @@ var Server = (function (_Equality) {
|
||||
|
||||
if (chan.speaking.has(user)) {
|
||||
chan.speaking.remove(user);
|
||||
user.voiceChannel = null;
|
||||
return chan;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ var User = (function (_Equality) {
|
||||
since: null,
|
||||
channel: null
|
||||
};
|
||||
this.voiceChannel = null;
|
||||
}
|
||||
|
||||
User.prototype.mention = function mention() {
|
||||
|
||||
Reference in New Issue
Block a user