import { type APIAuditLogOptions } from "https://deno.land/x/discord_api_types@0.37.18/payloads/v9/auditLog.ts";
Properties
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
optional
auto_moderation_rule_trigger_type: AuditLogRuleTriggerTypeTrigger 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
Number of days after which inactive members were kicked
Present from:
- MEMBER_PRUNE
optional
channel_id: SnowflakeChannel 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
optional
message_id: SnowflakeID of the message that was targeted
Present from:
- MESSAGE_PIN
- MESSAGE_UNPIN
Number of entities that were targeted
Present from:
- MESSAGE_DELETE
- MESSAGE_BULK_DELETE
- MEMBER_DISCONNECT
- MEMBER_MOVE
optional
id: SnowflakeID of the overwritten entity
Present from:
- CHANNEL_OVERWRITE_CREATE
- CHANNEL_OVERWRITE_UPDATE
- CHANNEL_OVERWRITE_DELETE
optional
type: AuditLogOptionsTypeType of overwritten entity - "0" for "role" or "1" for "member"
Present from:
- CHANNEL_OVERWRITE_CREATE
- CHANNEL_OVERWRITE_UPDATE
- CHANNEL_OVERWRITE_DELETE