Remove GuildDataStore and move towards storing data in Maps

This commit is contained in:
Amish Shah
2016-08-19 19:58:32 +01:00
parent 75ff9fb096
commit ed818d6e7f
13 changed files with 44 additions and 88 deletions

View File

@@ -74,14 +74,14 @@ class GuildMember {
*/
get roles() {
const list = [];
const everyoneRole = this.guild.store.get('roles', this.guild.id);
const everyoneRole = this.guild.roles.get(this.guild.id);
if (everyoneRole) {
list.push(everyoneRole);
}
for (const roleID of this._roles) {
const role = this.guild.store.get('roles', roleID);
const role = this.guild.roles.get(roleID);
if (role) {
list.push(role);
}
@@ -114,7 +114,7 @@ class GuildMember {
* @readonly
*/
get voiceChannel() {
return this.guild.store.get('channels', this.voiceChannelID);
return this.guild.channels.get(this.voiceChannelID);
}
/**