mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Remove GuildDataStore and move towards storing data in Maps
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user