Audit Logs
- class discord_limits.paths.AuditPaths(client)
- Parameters:
client (discord_limits.DiscordClient) – The DiscordClient instance to use.
- async get_audit_logs(guild_id, limit=50, before=None, user_id=None, action_type=None)
Get the audit logs for a guild.
- Parameters:
guild_id (int) – The ID of the guild.
limit (int) – The number of entries to return.
before (int) – Entries that preceded a specific audit log entry ID
user_id (int) – The ID of the user to filter the logs by.
action_type (int) – The type of action to filter the logs by.
- Returns:
A list of audit logs.
- Return type:
ClientResponse
- Raises:
InvalidParams – The limit is not between 1 and 100.