mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
Remove VoiceChannel store and add members map
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
const GuildChannel = require('./GuildChannel');
|
||||
const VoiceChannelDataStore = require('./datastore/VoiceChannelDataStore');
|
||||
|
||||
/**
|
||||
* Represents a Server Voice Channel on Discord.
|
||||
@@ -8,7 +7,11 @@ const VoiceChannelDataStore = require('./datastore/VoiceChannelDataStore');
|
||||
class VoiceChannel extends GuildChannel {
|
||||
constructor(guild, data) {
|
||||
super(guild, data);
|
||||
this.store = new VoiceChannelDataStore();
|
||||
/**
|
||||
* The members in this Voice Channel.
|
||||
* @type {Map<String, GuildMember>}
|
||||
*/
|
||||
this.members = new Map();
|
||||
}
|
||||
|
||||
setup(data) {
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
const AbstractDataStore = require('./AbstractDataStore');
|
||||
|
||||
class TextChannelDataStore extends AbstractDataStore {
|
||||
constructor() {
|
||||
super();
|
||||
this.register('messages');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = TextChannelDataStore;
|
||||
@@ -1,10 +0,0 @@
|
||||
const AbstractDataStore = require('./AbstractDataStore');
|
||||
|
||||
class VoiceChannelDataStore extends AbstractDataStore {
|
||||
constructor() {
|
||||
super();
|
||||
this.register('members');
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = VoiceChannelDataStore;
|
||||
Reference in New Issue
Block a user