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.
This commit is contained in:
Jesse 2019-05-12 19:14:27 -06:00 committed by GitHub
parent 8325a6bf6d
commit 544e4b9a8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {