1
0
mirror of https://github.com/spacebarchat/client.git synced 2024-11-22 02:12:38 +01:00

Update GuildMember.ts

This commit is contained in:
Puyodead1 2023-12-09 21:32:03 -05:00
parent 0b23d2acba
commit 802f31569b
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -42,11 +42,6 @@ export default class GuildMember {
this.flags = data.flags;
this.pending = data.pending;
this.communication_disabled_until = data.communication_disabled_until;
if ("presence" in data) {
// TODO:
this.app.presences.add(data.presence);
}
}
@computed
@ -62,11 +57,6 @@ export default class GuildMember {
@action
update(member: APIGuildMember | GatewayGuildMemberListUpdateMember) {
Object.assign(this, member);
if ("presence" in member) {
// TODO:
this.app.presences.add(member.presence);
}
}
@action