mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Rename voiceconnection.speaking to voiceconnection.memberd
This commit is contained in:
@@ -149,7 +149,7 @@ export default class Server extends Equality {
|
||||
// removes from other speaking channels first
|
||||
this.eventStopSpeaking(user);
|
||||
|
||||
channel.speaking.add(user);
|
||||
channel.members.add(user);
|
||||
user.voiceChannel = channel;
|
||||
return true;
|
||||
}else{
|
||||
@@ -160,8 +160,8 @@ export default class Server extends Equality {
|
||||
|
||||
eventStopSpeaking(user){
|
||||
for(let chan of this.channels.getAll("type", "voice")){
|
||||
if(chan.speaking.has(user)){
|
||||
chan.speaking.remove(user);
|
||||
if(chan.members.has(user)){
|
||||
chan.members.remove(user);
|
||||
user.voiceChannel = null;
|
||||
return chan;
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import {reg} from "../Util/ArgumentRegulariser";
|
||||
export default class VoiceChannel extends ServerChannel{
|
||||
constructor(data, client, server){
|
||||
super(data, client, server);
|
||||
this.speaking = new Cache();
|
||||
this.members = new Cache();
|
||||
}
|
||||
|
||||
join(callback = function () { }) {
|
||||
|
||||
Reference in New Issue
Block a user