internal static RpcWebhookUser Create(DiscordRpcClient discord, Model model, ulong webhookId) { var entity = new RpcWebhookUser(discord, model.Id, webhookId); entity.Update(model); return(entity); }
internal static RpcUser Create(DiscordRpcClient discord, Model model, ulong?webhookId) { RpcUser entity; if (webhookId.HasValue) { entity = new RpcWebhookUser(discord, model.Id, webhookId.Value); } else { entity = new RpcUser(discord, model.Id); } entity.Update(model); return(entity); }