src: Don't use the GuildMemberRoleStore to patch the GuildMember _roles (#3226)

* src: Don't use the GuildMemberRoleStore for patching GuildMember#_roles

* src: Remove usage of _patch from the store

* src: Finish up clone changes
This commit is contained in:
Vlad Frangu
2019-04-23 21:44:02 +03:00
committed by Amish Shah
parent 3f6d08a499
commit 75cd260808
2 changed files with 4 additions and 8 deletions

View File

@@ -76,7 +76,7 @@ class GuildMember extends Base {
if (data.joined_at) this.joinedTimestamp = new Date(data.joined_at).getTime();
if (data.user) this.user = this.guild.client.users.add(data.user);
if (data.roles) this.roles._patch(data.roles);
if (data.roles) this._roles = data.roles;
}
_clone() {