#[non_exhaustive]pub struct AuditLogEntryOptions {Show 13 fields
pub application_id: Option<ApplicationId>,
pub auto_moderation_rule_name: Option<CompactString>,
pub auto_moderation_rule_trigger_type: Option<TriggerType>,
pub channel_id: Option<ChannelId>,
pub count: Option<u32>,
pub delete_member_days: Option<u32>,
pub id: Option<GenericId>,
pub members_removed: Option<u32>,
pub message_id: Option<MessageId>,
pub role_name: Option<CompactString>,
pub kind: Option<OverwriteType>,
pub integration_type: Option<IntegrationType>,
pub status: Option<CompactString>,
}Expand description
The optional entry info
of some event types (D-071): see each AuditLogEvent for the fields it has.
Discord sends the counts and types as strings; they are decoded as numbers and enums and written back as strings.
discord.js counterpart: GuildAuditLogsEntry#extra.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.application_id: Option<ApplicationId>The application whose command permissions were updated.
auto_moderation_rule_name: Option<CompactString>The name of the auto moderation rule that triggered.
auto_moderation_rule_trigger_type: Option<TriggerType>The trigger type of the auto moderation rule that triggered.
channel_id: Option<ChannelId>The channel the entities were in.
count: Option<u32>The number of entities targeted, or of position updates.
delete_member_days: Option<u32>The inactivity in days after which members were pruned.
id: Option<GenericId>The overwritten role or member.
members_removed: Option<u32>The number of members removed by a prune.
message_id: Option<MessageId>The pinned or unpinned message.
role_name: Option<CompactString>The overwritten role’s name (role overwrites only).
kind: Option<OverwriteType>Whether the overwritten entity is a role or a member.
integration_type: Option<IntegrationType>The type of integration that performed the action.
status: Option<CompactString>The new voice channel status.