Add SessionStartLimit to GatewayBotResponse struct (#949)

Current GatewayBotResponse struct is missing the information required for max concurrency sharding.
This commit is contained in:
vertex-admin 2021-08-20 15:46:59 -07:00 committed by GitHub
parent 9d9602318a
commit be90532eda
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1109,6 +1109,15 @@ type MessageReaction struct {
type GatewayBotResponse struct { type GatewayBotResponse struct {
URL string `json:"url"` URL string `json:"url"`
Shards int `json:"shards"` Shards int `json:"shards"`
SessionStartLimit SessionInformation `json:"session_start_limit"`
}
// SessionInformation provides the information for max concurrency sharding
type SessionInformation struct {
Total int `json:"total,omitempty"`
Remaining int `json:"remaining,omitempty"`
ResetAfter int `json:"reset_after,omitempty"`
MaxConcurrency int `json:"max_concurrency,omitempty"`
} }
// GatewayStatusUpdate is sent by the client to indicate a presence or status update // GatewayStatusUpdate is sent by the client to indicate a presence or status update