Move Conversations and Offline from ChatAPI to result, where they belong
This commit is contained in:
4
types.go
4
types.go
@ -21,8 +21,6 @@ type ChatAPI struct {
|
||||
Message string `json:"message,omitempty"`
|
||||
ID int `json:"id,omitempty"`
|
||||
Ratelimits []rateLimits `json:"ratelimits,omitempty"`
|
||||
Conversations []conversation `json:"conversations,omitempty"`
|
||||
Offline bool `json:"offline,omitempty"`
|
||||
Result result `json:"result,omitempty"`
|
||||
keybase Keybase // Some methods will need this, so I'm passing it but keeping it unexported
|
||||
}
|
||||
@ -165,6 +163,8 @@ type result struct {
|
||||
Message string `json:"message"`
|
||||
ID int `json:"id"`
|
||||
Ratelimits []rateLimits `json:"ratelimits"`
|
||||
Conversations []conversation `json:"conversations,omitempty"`
|
||||
Offline bool `json:"offline,omitempty"`
|
||||
}
|
||||
type messages struct {
|
||||
Msg msg `json:"msg,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user