APIAuditLogOptions
https://docs.discord.com/developers/resources/audit-log#audit-log-entry-object-optional-audit-entry-info
Signature
export interface APIAuditLogOptionsProperties
13Methods
0No methods.
Properties
application_id?: Snowflake;ID of the app whose permissions were targeted Present from: - APPLICATION_COMMAND_PERMISSION_UPDATE
auto_moderation_rule_name?: string;Name of the Auto Moderation rule that was triggered Present from: - AUTO_MODERATION_BLOCK_MESSAGE - AUTO_MODERATION_FLAG_TO_CHANNEL - AUTO_MODERATION_USER_COMMUNICATION_DISABLED - AUTO_MODERATION_QUARANTINE_USER
auto_moderation_rule_trigger_type?: AuditLogRuleTriggerType;Trigger type of the Auto Moderation rule that was triggered Present from: - AUTO_MODERATION_BLOCK_MESSAGE - AUTO_MODERATION_FLAG_TO_CHANNEL - AUTO_MODERATION_USER_COMMUNICATION_DISABLED - AUTO_MODERATION_QUARANTINE_USER
delete_member_days?: string;Number of days after which inactive members were kicked Present from: - MEMBER_PRUNE
members_removed?: string;Number of members removed by the prune Present from: - MEMBER_PRUNE
channel_id?: Snowflake;Channel in which the entities were targeted Present from: - MEMBER_MOVE - MESSAGE_PIN - MESSAGE_UNPIN - MESSAGE_DELETE - STAGE_INSTANCE_CREATE - STAGE_INSTANCE_UPDATE - STAGE_INSTANCE_DELETE - AUTO_MODERATION_BLOCK_MESSAGE - AUTO_MODERATION_FLAG_TO_CHANNEL - AUTO_MODERATION_USER_COMMUNICATION_DISABLED - AUTO_MODERATION_QUARANTINE_USER
message_id?: Snowflake;ID of the message that was targeted Present from: - MESSAGE_PIN - MESSAGE_UNPIN
count?: string;Number of entities that were targeted, or number of position updates Present from: - MESSAGE_DELETE - MESSAGE_BULK_DELETE - MEMBER_DISCONNECT - MEMBER_MOVE - CHANNEL_POSITION_UPDATE - ROLE_POSITION_UPDATE
id?: Snowflake;ID of the overwritten entity Present from: - CHANNEL_OVERWRITE_CREATE - CHANNEL_OVERWRITE_UPDATE - CHANNEL_OVERWRITE_DELETE
type?: AuditLogOptionsType;Type of overwritten entity - "0" for "role" or "1" for "member" Present from: - CHANNEL_OVERWRITE_CREATE - CHANNEL_OVERWRITE_UPDATE - CHANNEL_OVERWRITE_DELETE {@link AuditLogOptionsType}
role_name?: string;Name of the role Present from: - CHANNEL_OVERWRITE_CREATE - CHANNEL_OVERWRITE_UPDATE - CHANNEL_OVERWRITE_DELETE **Present only if the {@link APIAuditLogOptions#type entry type} is "0"**
integration_type?: APIGuildIntegrationType;Type of integration which performed the action Present from: - MEMBER_KICK - MEMBER_ROLE_UPDATE
status?: string;The new voice channel status Present from: - VOICE_CHANNEL_STATUS_UPDATE