From 2c61e81d77018d56e96b6dbff163cb7a46f60f5a Mon Sep 17 00:00:00 2001 From: Karim Nahas Date: Mon, 15 Feb 2021 14:13:18 +0000 Subject: [PATCH] Added explanation --- info.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/info.go b/info.go index 8fbe88743..21f74a4de 100644 --- a/info.go +++ b/info.go @@ -431,6 +431,15 @@ type Icons struct { // Info contains various details about the authenticated user and team. // It is returned by StartRTM or included in the "ConnectedEvent" RTM event. +// It should be noted that in order to optimise the sync speed, RTMConnect +// (which uses "rtm.connect") does not get all the account information. Namely, +// channels, groups, mpims, ims, users and bots are left empty. +// If you want to have access these fields populated, you should use "rtm.start" +// instead. Sample code bellow: +// ``` +// rtm := slack.NewRTM(slack.RTMOptionUseStart(true)) +// go rtm.ManageConnection() +// ``` type Info struct { URL string `json:"url,omitempty"` User *UserDetails `json:"self,omitempty"`