Method GetAuditLogsAsync
- Namespace
- DisCatSharp.Entities
- Assembly
- DisCatSharp.dll
GetAuditLogsAsync(int?, DiscordMember, AuditLogActionType?)
Gets audit log entries for this guild.
public Task<IReadOnlyList<DiscordAuditLogEntry>> GetAuditLogsAsync(int? limit = null, DiscordMember byMember = null, AuditLogActionType? actionType = null)
Parameters
limit
int?Maximum number of entries to fetch.
byMember
DiscordMemberFilter by member responsible.
actionType
AuditLogActionType?Filter by action type.
Returns
- Task<IReadOnlyList<DiscordAuditLogEntry>>
A collection of requested audit log entries.
Exceptions
- UnauthorizedException
Thrown when the client does not have the ViewAuditLog permission.
- ServerErrorException
Thrown when Discord is unable to process the request.