Instance Method

getAuditLog(from:with:then:)

Get’s a guild’s audit logs

Declaration

func getAuditLog(from guildId: Snowflake, with options: [String : Any]? = nil, then completion: @escaping (AuditLog?, RequestError?) -> Void)

Parameters

guildId

Guild to get audit logs from

options

Optional flags to request for when getting audit logs

Options Params

  • user_id: String of user to look for logs of

  • action_type: Integer of Audit Log Event. Refer to Audit Log Events

  • before: String of entry id to look before

  • limit: Integer of how many entries to return (default 50, minimum 1, maximum 100)