Requested changes
This commit is contained in:
parent
e6b0e45ff6
commit
4b7699fe1a
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ export class Member extends Base {
|
||||||
protected readFromData (data: MemberPayload): void {
|
protected readFromData (data: MemberPayload): void {
|
||||||
super.readFromData(data.user)
|
super.readFromData(data.user)
|
||||||
this.nick = data.nick ?? this.nick
|
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.joinedAt = data.joined_at ?? this.joinedAt
|
||||||
this.premiumSince = data.premium_since ?? this.premiumSince
|
this.premiumSince = data.premium_since ?? this.premiumSince
|
||||||
this.deaf = data.deaf ?? this.deaf
|
this.deaf = data.deaf ?? this.deaf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue