From 544e4b9a8c70a0f820e37a09558f5f5795f3b8e4 Mon Sep 17 00:00:00 2001 From: Jesse <34263365+NewWinter@users.noreply.github.com> Date: Sun, 12 May 2019 19:14:27 -0600 Subject: [PATCH] Add proper response type for GuildBans docs The previous documentation stated that the response type was an array of User structures, when the function return an array of GuildBan structures. --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 84a2a31..6023cc3 100644 --- a/restapi.go +++ b/restapi.go @@ -675,7 +675,7 @@ func (s *Session) GuildLeave(guildID string) (err error) { return } -// GuildBans returns an array of User structures for all bans of a +// GuildBans returns an array of GuildBan structures for all bans of a // given guild. // guildID : The ID of a Guild. func (s *Session) GuildBans(guildID string) (st []*GuildBan, err error) {