fetchAuditLogs method

Future<AuditLog> fetchAuditLogs({
  1. Snowflake? userId,
  2. int? actionType,
  3. Snowflake? before,
  4. int? limit,
})

Returns Audit logs. https://discordapp.com/developers/docs/resources/audit-log

var logs = await guild.getAuditLogs(actionType: 1);

Implementation

Future<AuditLog> fetchAuditLogs({Snowflake? userId, int? actionType, Snowflake? before, int? limit}) =>
    client.httpEndpoints.fetchAuditLogs(this.id, userId: userId, actionType: actionType, before: before, limit: limit);