Add RateLimit struct

This commit is contained in:
Bruce Marriner 2016-01-10 19:39:44 -06:00
parent b5e45827fd
commit 70d420f16b

View file

@ -273,6 +273,11 @@ type Ready struct {
PrivateChannels []*Channel `json:"private_channels"` PrivateChannels []*Channel `json:"private_channels"`
Guilds []*Guild `json:"guilds"` Guilds []*Guild `json:"guilds"`
} }
type RateLimit struct {
Bucket string `json:"bucket"`
Message string `json:"message"`
RetryAfter time.Duration `json:"retry_after"`
}
// A ReadState stores data on the read state of channels. // A ReadState stores data on the read state of channels.
type ReadState struct { type ReadState struct {