From 3458ae3d6d1f3535fbf239a65f08530377f04a4a Mon Sep 17 00:00:00 2001 From: "kayos@tcp.direct" Date: Sun, 23 Oct 2022 01:50:43 -0700 Subject: [PATCH] Fix pointer receiver inconsistencies --- state.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/state.go b/state.go index 48157e7..37e4525 100644 --- a/state.go +++ b/state.go @@ -258,7 +258,7 @@ type Channel struct { // Users returns a reference of *Users that the client knows the channel has // If you're just looking for just the name of the users, use Channnel.UserList. -func (ch Channel) Users(c *Client) []*User { +func (ch *Channel) Users(c *Client) []*User { if c == nil { panic("nil Client provided") } @@ -278,7 +278,7 @@ func (ch Channel) Users(c *Client) []*User { // Trusted returns a list of users which have voice or greater in the given // channel. See Perms.IsTrusted() for more information. -func (ch Channel) Trusted(c *Client) []*User { +func (ch *Channel) Trusted(c *Client) []*User { if c == nil { panic("nil Client provided") } @@ -303,7 +303,7 @@ func (ch Channel) Trusted(c *Client) []*User { // Admins returns a list of users which have half-op (if supported), or // greater permissions (op, admin, owner, etc) in the given channel. See // Perms.IsAdmin() for more information. -func (ch Channel) Admins(c *Client) []*User { +func (ch *Channel) Admins(c *Client) []*User { if c == nil { panic("nil Client provided") }