internal void Update(GatewayBotModel model) { Url = model.Url; ShardCount = model.Shards; MaxSessionAmount = model.SessionStartLimit.Total; RemainingSessionAmount = model.SessionStartLimit.Remaining; ResetAfter = TimeSpan.FromMilliseconds(model.SessionStartLimit.ResetAfter); }
internal RestGatewayBotResponse(RestDiscordClient client, GatewayBotModel model) : base(client) { Update(model); }