Browse Source

Update result struct to include stuff i forgot

main
Sam 6 years ago
parent
commit
9e443921c4
  1. 7
      types.go

7
types.go

@ -149,8 +149,11 @@ type pagination struct {
ForceFirstPage bool `json:"forceFirstPage,omitempty"` ForceFirstPage bool `json:"forceFirstPage,omitempty"`
} }
type result struct { type result struct {
Messages []messages `json:"messages,omitempty"` Messages []messages `json:"messages,omitempty"`
Pagination pagination `json:"pagination"` Pagination pagination `json:"pagination"`
Message string `json:"message"`
ID int `json:"id"`
Ratelimits []rateLimits `json:"ratelimits"`
} }
type messages struct { type messages struct {
Msg msg `json:"msg,omitempty"` Msg msg `json:"msg,omitempty"`

Loading…
Cancel
Save