Audit logs entry.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
TAction | AuditLogEvent | Yes | AuditLogEvent | None |
TActionType | GuildAuditLogsActionType | Yes | TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : 'All' | None |
TTargetType | GuildAuditLogsTargetType | Yes | TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : 'Unknown' | None |
extra:TAction extends keyof GuildAuditLogsEntryExtraField ? GuildAuditLogsEntryExtraField[TAction] : null
Any extra data from the entry
target:TTargetType extends keyof GuildAuditLogsEntryTargetField<TAction> ? GuildAuditLogsEntryTargetField<TAction>[TTargetType] : Role | GuildEmoji | { id: Snowflake } | null
The target of this entry
Finds the action type from the guild audit log entry action.
Name | Type | Optional | Description |
---|---|---|---|
action | AuditLogEvent | No | The action target |
isAction(action):this is GuildAuditLogsEntry<TCheckAction, TCheckAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TCheckAction][1] : 'All', TCheckAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TCheckAction][0] : 'Unknown'>
Checks whether this GuildAuditLogsEntry is of the specified AuditLogEvent type.
Name | Type | Optional | Description |
---|---|---|---|
action | TCheckAction | No | The type to check for |
Finds the target type of a guild audit log entry.
Name | Type | Optional | Description |
---|---|---|---|
target | AuditLogEvent | No | The action target |