func GuildAuditLogs(client httd.Getter, guildID Snowflake, params *GuildAuditLogsParams) (log *AuditLog, err error) {
	details := &httd.Request{
		Ratelimiter: ratelimitGuildAuditLogs(guildID),
		Endpoint:    endpoint.GuildAuditLogs(guildID) + params.GetQueryString(),
	}
	resp, body, err := client.Get(details)
	if err != nil {
		return
	}

	if resp.StatusCode != 200 {
		err = errors.New("incorrect status code. Got " + strconv.Itoa(resp.StatusCode) + ", wants 200. Message: " + string(body))
		return
	}

	err = unmarshal(body, &log)
	return
}
// GuildAuditLogs [GET]     Returns an audit log object for the guild.
//                          Requires the 'VIEW_AUDIT_LOG' permission.
// Endpoint                 /guilds/{guild.id}/audit-logs
// Rate limiter [MAJOR]     /guilds/{guild.id}/audit-logs
// Discord documentation    https://discordapp.com/developers/docs/resources/audit-log#get-guild-audit-log
// Reviewed                 2018-06-05
// Comment                  -
// Note 										Check the last entry in the cache, to avoid
//                          fetching data we already go
GuildAuditLogs [GET]     Returns an audit log object for the guild.
Requires the 'VIEW_AUDIT_LOG' permission.
// GuildAuditLogs [ GET ] Returns an audit log object for the guild . // Requires the ' VIEW_AUDIT_LOG ' permission . // Endpoint / guilds / { guild . id } / audit - logs // Rate limiter [ MAJOR ] / guilds / { guild . id } / audit - logs // Discord documentation https : // discordapp . com / developers / docs / resources / audit - log#get - guild - audit - log // Reviewed 2018 - 06 - 05 // Comment - // Note Check the last entry in the cache to avoid // fetching data we already go
func GuildAuditLogs(client httd.Getter, guildID Snowflake, params *GuildAuditLogsParams) (log *AuditLog, err error) {
	details := &httd.Request{
		Ratelimiter: ratelimitGuildAuditLogs(guildID),
		Endpoint:    endpoint.GuildAuditLogs(guildID) + params.GetQueryString(),
	}
	resp, body, err := client.Get(details)
	if err != nil {
		return
	}
	if resp.StatusCode != 200 {
		err = errors.New("incorrect status code. Got " + strconv.Itoa(resp.StatusCode) + ", wants 200. Message: " + string(body))
		return
	}
	err = unmarshal(body, &log)
	return
}
func GuildAuditLogs ( client httd . Getter , guildID Snowflake , params * GuildAuditLogsParams ) ( log * AuditLog , err error ) { details := & httd . Request { Ratelimiter : ratelimitGuildAuditLogs ( guildID ) , Endpoint : endpoint . GuildAuditLogs ( guildID ) + params . GetQueryString ( ) , } resp , body , err := client . Get ( details ) if err != nil { return } if resp . StatusCode != 200 { err = errors . New ( " " + strconv . Itoa ( resp . StatusCode ) + " " + string ( body ) ) return } err = unmarshal ( body , & log ) return }
GuildAuditLogs [GET]     Returns an audit log object for the guild.
GuildAuditLogs [ GET ] Returns an audit log object for the guild .