From 70d420f16bd3e177b9dd4117b62b482a9a4cbf0b Mon Sep 17 00:00:00 2001 From: Bruce Marriner Date: Sun, 10 Jan 2016 19:39:44 -0600 Subject: [PATCH] Add RateLimit struct --- structs.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/structs.go b/structs.go index 3710037..e450961 100644 --- a/structs.go +++ b/structs.go @@ -273,6 +273,11 @@ type Ready struct { PrivateChannels []*Channel `json:"private_channels"` 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. type ReadState struct {