Audit logs entry.
Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
TAction | GuildAuditLogsResolvable | Yes | AuditLogEvent | None |
TActionType | GuildAuditLogsActionType | Yes | TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][1] : GuildAuditLogsActionType | None |
TTargetType | GuildAuditLogsTargetType | Yes | TAction extends keyof GuildAuditLogsTypes ? GuildAuditLogsTypes[TAction][0] : GuildAuditLogsTargetType | None |
TResolvedType | Yes | TAction extends null ? AuditLogEvent : TAction | None |
extra:TResolvedType extends keyof GuildAuditLogsEntryExtraField ? GuildAuditLogsEntryExtraField[TResolvedType] : null
Any extra data from the entry
target:TTargetType extends keyof GuildAuditLogsEntryTargetField<TActionType> ? GuildAuditLogsEntryTargetField<TActionType>[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 |
Finds the target type of a guild audit log entry.
Name | Type | Optional | Description |
---|---|---|---|
target | AuditLogEvent | No | The action target |