mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Rename voiceconnection.speaking to voiceconnection.memberd
This commit is contained in:
@@ -181,7 +181,7 @@ var Server = (function (_Equality) {
|
||||
// removes from other speaking channels first
|
||||
this.eventStopSpeaking(user);
|
||||
|
||||
channel.speaking.add(user);
|
||||
channel.members.add(user);
|
||||
user.voiceChannel = channel;
|
||||
return true;
|
||||
} else {
|
||||
@@ -205,8 +205,8 @@ var Server = (function (_Equality) {
|
||||
|
||||
var chan = _ref3;
|
||||
|
||||
if (chan.speaking.has(user)) {
|
||||
chan.speaking.remove(user);
|
||||
if (chan.members.has(user)) {
|
||||
chan.members.remove(user);
|
||||
user.voiceChannel = null;
|
||||
return chan;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user