feature: Remove DM cache and fix references (#1851)
* Remove DM cache and fix references * Move line back to where it was
This commit is contained in:
@@ -116,20 +116,20 @@ namespace Discord.WebSocket
|
||||
}
|
||||
internal static SocketGuildUser Create(SocketGuild guild, ClientState state, UserModel model)
|
||||
{
|
||||
var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model));
|
||||
var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model, true));
|
||||
entity.Update(state, model);
|
||||
entity.UpdateRoles(new ulong[0]);
|
||||
return entity;
|
||||
}
|
||||
internal static SocketGuildUser Create(SocketGuild guild, ClientState state, MemberModel model)
|
||||
{
|
||||
var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model.User));
|
||||
var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model.User, true));
|
||||
entity.Update(state, model);
|
||||
return entity;
|
||||
}
|
||||
internal static SocketGuildUser Create(SocketGuild guild, ClientState state, PresenceModel model)
|
||||
{
|
||||
var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model.User));
|
||||
var entity = new SocketGuildUser(guild, guild.Discord.GetOrCreateUser(state, model.User, true));
|
||||
entity.Update(state, model, false);
|
||||
return entity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user