Skip to content

Commit

Permalink
Merge pull request #322 from Octol1ttle/fix-communicationdisableduntil
Browse files Browse the repository at this point in the history
Fill CommunicationDisabledUntil when updating cached GuildMember
  • Loading branch information
Nihlus authored Dec 9, 2023
2 parents 1250b1f + d290992 commit 195e02b
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ public async Task<Result> RespondAsync(IGuildMemberUpdate gatewayEvent, Cancella
gatewayEvent.IsMuted.TryGet(out var isMuted) ? isMuted : cachedInstance.IsMuted,
default, // TODO: this is probably on this event, but Discord hasn't documented it
gatewayEvent.IsPending.TryGet(out var isPending) ? isPending : cachedInstance.IsPending,
cachedInstance.Permissions
cachedInstance.Permissions,
gatewayEvent.CommunicationDisabledUntil
);
}
else if (gatewayEvent.JoinedAt.HasValue)
Expand All @@ -211,7 +212,9 @@ public async Task<Result> RespondAsync(IGuildMemberUpdate gatewayEvent, Cancella
gatewayEvent.IsDeafened.TryGet(out var isDeafened) && isDeafened,
gatewayEvent.IsMuted.TryGet(out var isMuted) && isMuted,
default, // TODO: this is probably on this event, but Discord hasn't documented it
gatewayEvent.IsPending.TryGet(out var isPending) && isPending
gatewayEvent.IsPending.TryGet(out var isPending) && isPending,
default,
gatewayEvent.CommunicationDisabledUntil
);
}
else
Expand Down

0 comments on commit 195e02b

Please sign in to comment.