Просмотр исходного кода

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.
Jesse 5 лет назад
Родитель
Сommit
544e4b9a8c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      restapi.go

+ 1 - 1
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) {