Skip to content

Commit

Permalink
fix(threads): nullable m.presence in THREAD_MEMBERS_UPDATE (#1306)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZixeSea authored Feb 10, 2022
1 parent 1a6e043 commit 6ba5b05
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/gateway/Shard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2245,7 +2245,9 @@ class Shard extends EventEmitter {
m.member.id = m.member.user.id;
const guild = this.client.guilds.get(packet.d.guild_id);
if(guild) {
guild.members.update(m.presence, guild);
if(m.presence) {
guild.members.update(m.presence, guild);
}
guild.members.update(m.member);
}
return channel.members.update(m, this.client);
Expand Down

0 comments on commit 6ba5b05

Please sign in to comment.