Requested changes

This commit is contained in:
DjDeveloperr 2020-11-09 08:36:41 +05:30
parent e6b0e45ff6
commit 4b7699fe1a
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export class Member extends Base {
protected readFromData (data: MemberPayload): void {
super.readFromData(data.user)
this.nick = data.nick ?? this.nick
this.roleIDs = data.roles ?? this.roles
this.roleIDs = data.roles ?? this.roles.map(r => r.id)
this.joinedAt = data.joined_at ?? this.joinedAt
this.premiumSince = data.premium_since ?? this.premiumSince
this.deaf = data.deaf ?? this.deaf