Beispiel #1
0
 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);
 }
Beispiel #2
0
 internal RestGatewayBotResponse(RestDiscordClient client, GatewayBotModel model) : base(client)
 {
     Update(model);
 }