Skip to content

Commit 56bd1b9

Browse files
author
Karim Nahas
committed
Added missing information collected from rtm start
1 parent 26dd6eb commit 56bd1b9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

info.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,15 @@ type Icons struct {
432432
// Info contains various details about the authenticated user and team.
433433
// It is returned by StartRTM or included in the "ConnectedEvent" RTM event.
434434
type Info struct {
435-
URL string `json:"url,omitempty"`
436-
User *UserDetails `json:"self,omitempty"`
437-
Team *Team `json:"team,omitempty"`
435+
URL string `json:"url,omitempty"`
436+
User *UserDetails `json:"self,omitempty"`
437+
Team *Team `json:"team,omitempty"`
438+
Channels []*Channel `json:"channels",omitempty`
439+
Groups []*Channel `json:"groups",omitempty`
440+
MPIMs []*Channel `json:"mpims",omitempty`
441+
IMs []*Channel `json:"ims",omitempty`
442+
Users []*User `json:"users,omitempty"`
443+
Bots []*User `json:"bots,omitempty"`
438444
}
439445

440446
type infoResponseFull struct {

0 commit comments

Comments
 (0)