Skip to content

Commit

Permalink
fix: GuildMemberUpdated cacheable before entity incorrect (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
quinchs authored Apr 4, 2022
1 parent e38104b commit bfd0d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Discord.Net.WebSocket/DiscordSocketClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@ private async Task ProcessMessageAsync(GatewayOpCode opCode, int? seq, string ty
else
{
user = guild.AddOrUpdateUser(data);
var cacheableBefore = new Cacheable<SocketGuildUser, ulong>(user, user.Id, true, () => null);
var cacheableBefore = new Cacheable<SocketGuildUser, ulong>(null, user.Id, false, () => null);
await TimedInvokeAsync(_guildMemberUpdatedEvent, nameof(GuildMemberUpdated), cacheableBefore, user).ConfigureAwait(false);
}
}
Expand Down

0 comments on commit bfd0d9b

Please sign in to comment.