소스 검색

Add RateLimit struct

Bruce Marriner 9 년 전
부모
커밋
70d420f16b
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      structs.go

+ 5 - 0
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 {