Documentation: slight change

This commit is contained in:
kayos@tcp.direct 2022-04-10 05:25:50 -07:00
parent c2a726248a
commit 78e9032f25
Signed by: kayos
GPG Key ID: 4B841471B4BEE979
2 changed files with 2 additions and 3 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
.idea
*.save
*.swp

View File

@ -143,9 +143,7 @@ type User struct {
} `json:"extras"`
}
// Channels returns a reference of *Channels that the client knows the user
// is in. If you're just looking for the namme of the channels, use
// User.ChannelList.
// Channels returns a slice of pointers to Channel types that the client knows the user is in.
func (u User) Channels(c *Client) []*Channel {
if c == nil {
panic("nil Client provided")