fetchAuditLogs abstract method

Future<IAuditLog> 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.fetchAuditLogs(actionType: 1);

Implementation

Future<IAuditLog> fetchAuditLogs({Snowflake? userId, int? actionType, Snowflake? before, int? limit});