GuildAuditLogEntry

GuildAuditLogEntry

Represents a guild audit log entry describing a moderation action

Constructor

new GuildAuditLogEntry()

Properties:
Name Type Attributes Description
actionType Number

The action type of the entry. See Constants.AuditLogActions for more details

after Object <nullable>

The properties of the targeted object after the action was taken For example, if a channel was renamed from #general to #potato, this would be `{name: "potato"}``

autoModerationRuleName String <nullable>

The name of the automod rule that was triggered, action types 143-145 only

autoModerationRuleTriggerType Number <nullable>

The trigger type of the automod rule that was triggered, action types 143-145 only

before Object <nullable>

The properties of the targeted object before the action was taken For example, if a channel was renamed from #general to #potato, this would be `{name: "general"}``

channel CategoryChannel | TextChannel | VoiceChannel | NewsThreadChannel | PrivateThreadChannel | PublicThreadChannel | StageChannel | Object <nullable>

The channel targeted in the entry, action types 26 (MEMBER_MOVE), 72/74/75 (MESSAGE_DELETE/PIN/UNPIN) and 83/84/85 (STAGE_INSTANCE_CREATE/UPDATE/DELETE) only. If the channel is not cached, this will be an object with an id key. No other property is guaranteed.

count Number <nullable>

The number of entities targeted For example, for action type 26 (MEMBER_MOVE), this is the number of members that were moved/disconnected from the voice channel

deleteMemberDays Number <nullable>

The number of days of inactivity to prune for, action type 21 (MEMBER_PRUNE) only

guild Guild | Object

The guild containing the entry. If the guild is not cached, this will be an object with an id key. No other property is guaranteed.

id String

The ID of the entry

member Member | Object <nullable>

The member described by the permission overwrite, action types 13-15 (CHANNEL_OVERWRITE_CREATE/UPDATE/DELETE) only. If the guild or member is not cached, this could be {id: String}

membersRemoved Number <nullable>

The number of members pruned from the server, action type 21 (MEMBER_PRUNE) only

message Message | Object <nullable>

The message that was (un)pinned, action types 74/75 (MESSAGE_PIN/UNPIN) only. If the channel or message is not cached, this will be an object with an id key. No other property is guaranteed.

reason String <nullable>

The reason for the action

role Role | Object <nullable>

The role described by the permission overwrite, action types 13-15 (CHANNEL_OVERWRITE_CREATE/UPDATE/DELETE) only. If the guild or role is not cached, this could be {id: String, name: String}

status String <nullable>

The new voice channel status, action type 192 (VOICE_CHANNEL_STATUS_UPDATE) only

target CategoryChannel | Guild | Member | Invite | Role | Object | TextChannel | VoiceChannel | NewsChannel <nullable>

The object of the action target If the item or the item's guild (where relevant, not including invites) is not cached, this property will be null If the action targets a guild, this could be a Guild object If the action targets a guild channel, this could be a CategoryChannel, TextChannel, or VoiceChannel object If the action targets a member, this could be a Member object If the action targets a role, this could be a Role object If the action targets an invite, this is an Invite object If the action targets a webhook, this is null If the action targets a emoji, this could be an emoji object If the action targets a sticker, this could be a sticker object If the action targets a message, this is a User object

targetID String

The ID of the action target

user User

The user that performed the action. If the user is not cached, this will be an object with an id key. No other property is guaranteed.

Source: