Audit Logs

Working with audit logs is a complicated process with a lot of machinery involved. The library attempts to make this user-friendly by making use of a couple of data classes and enums, listed below.

Discord Models

AuditLogEntry

class disnake.AuditLogEntry(*, data, guild, application_commands, automod_rules, guild_scheduled_events, integrations, threads, users, webhooks)[source]

Represents an Audit Log entry.

You can retrieve these via Guild.audit_logs(), or via the on_audit_log_entry_create() event.

x == y

Checks if two entries are equal.

x != y

Checks if two entries are not equal.

hash(x)

Returns the entry’s hash.

Changed in version 1.7: Audit log entries are now comparable and hashable.

action

The action that was done.

Type:

AuditLogAction

user

The user who initiated this action. Usually Member, unless gone then it’s a User.

Changed in version 2.8: May now be an Object if the user could not be found.

Type:

Optional[Union[Member, User, Object]]

id

The entry ID.

Type:

int

target

The target that got changed. The exact type of this depends on the action being done.

Type:

Any

extra

Extra information that this entry has that might be useful. For most actions, this is None. However in some cases it contains extra information. See AuditLogAction for which actions have this field filled out.

Type:

Any

reason

The reason this action was done.

Type:

Optional[str]

created_at

Returns the entry’s creation time in UTC.

Type:

datetime.datetime

category

The category of the action, if applicable.

Type:

Optional[AuditLogActionCategory]

changes

The list of changes this entry has.

Type:

AuditLogChanges

before

The target’s prior state.

Type:

AuditLogDiff

after

The target’s subsequent state.

Type:

AuditLogDiff

Data Classes

AuditLogChanges

Attributes
class disnake.AuditLogChanges[source]

An audit log change set.

before

The old value. The attribute has the type of AuditLogDiff.

Depending on the AuditLogActionCategory retrieved by category, the data retrieved by this attribute differs:

Category

Description

create

All attributes are set to None.

delete

All attributes are set to the value before deletion.

update

All attributes are set to the value before updating.

None

No attributes are set.

after

The new value. The attribute has the type of AuditLogDiff.

Depending on the AuditLogActionCategory retrieved by category, the data retrieved by this attribute differs:

Category

Description

create

All attributes are set to the created value.

delete

All attributes are set to None.

update

All attributes are set to the value after updating.

None

No attributes are set.

AuditLogDiff

class disnake.AuditLogDiff[source]

Represents an audit log “change” object. A change object has dynamic attributes that depend on the type of action being done. Certain actions map to certain attributes being set.

Note that accessing an attribute that does not match the specified action will lead to an attribute error.

To get a list of attributes that have been set, you can iterate over them. To see a list of all possible attributes that could be set based on the action being done, check the documentation for AuditLogAction, otherwise check the documentation below for all attributes that are possible.

iter(diff)

Returns an iterator over (attribute, value) tuples of this diff.

name

A name of something.

Type:

str

icon

A guild’s or role’s icon.

See also Guild.icon or Role.icon.

Type:

Asset

splash

The guild’s invite splash. See also Guild.splash.

Type:

Asset

discovery_splash

The guild’s discovery splash. See also Guild.discovery_splash.

Type:

Asset

banner

The guild’s banner. See also Guild.banner.

Type:

Asset

owner

The guild’s owner. See also Guild.owner

Type:

Union[Member, User, Object]

region

The guild’s voice region. See also Guild.region.

Type:

str

afk_channel

The guild’s AFK channel.

If this could not be found, then it falls back to a Object with the ID being set.

See Guild.afk_channel.

Type:

Union[VoiceChannel, Object]

system_channel

The guild’s system channel.

If this could not be found, then it falls back to a Object with the ID being set.

See Guild.system_channel.

Type:

Union[TextChannel, Object]

rules_channel

The guild’s rules channel.

If this could not be found then it falls back to a Object with the ID being set.

See Guild.rules_channel.

Type:

Union[TextChannel, Object]

public_updates_channel

The guild’s public updates channel.

If this could not be found then it falls back to a Object with the ID being set.

See Guild.public_updates_channel.

Type:

Union[TextChannel, Object]

afk_timeout

The guild’s AFK timeout. See Guild.afk_timeout.

Type:

int

mfa_level

The guild’s MFA level. See Guild.mfa_level.

Type:

int

widget_enabled

The guild’s widget has been enabled or disabled.

Type:

bool

widget_channel

The widget’s channel.

If this could not be found then it falls back to a Object with the ID being set.

Type:

Union[abc.GuildChannel, Object]

verification_level

The guild’s verification level.

See also Guild.verification_level.

Type:

VerificationLevel

premium_progress_bar_enabled

Whether the guild’s premium progress bar is enabled.

See also Guild.premium_progress_bar_enabled.

Type:

bool

default_notifications

The guild’s default notification level.

See also Guild.default_notifications.

Type:

NotificationLevel

explicit_content_filter

The guild’s content filter.

See also Guild.explicit_content_filter.

Type:

ContentFilter

default_message_notifications

The guild’s default message notification setting.

Type:

int

vanity_url_code

The guild’s vanity URL code.

See also Guild.vanity_invite(), Guild.edit(), and Guild.vanity_url_code.

Type:

str

preferred_locale

The guild’s preferred locale.

Type:

Locale

position

The position of a Role or abc.GuildChannel.

Type:

int

type

The type of channel/thread, sticker, webhook, integration (str), or permission overwrite (int).

Type:

Union[ChannelType, StickerType, WebhookType, str, int]

topic

The topic of a TextChannel, StageChannel, StageInstance, ForumChannel or MediaChannel.

See also TextChannel.topic, StageChannel.topic, StageInstance.topic, ForumChannel.topic or MediaChannel.topic.

Type:

str

bitrate

The bitrate of a VoiceChannel or StageChannel.

See also VoiceChannel.bitrate or StageChannel.bitrate.

Type:

int

overwrites

A list of permission overwrite tuples that represents a target and a PermissionOverwrite for said target.

The first element is the object being targeted, which can either be a Member or User or Role. If this object is not found then it is a Object with an ID being filled and a type attribute set to either 'role' or 'member' to help decide what type of ID it is.

Type:

List[Tuple[Union[Member, User, Role, Object], PermissionOverwrite]]

privacy_level

The privacy level of the stage instance or guild scheduled event.

Type:

Union[StagePrivacyLevel, GuildScheduledEventPrivacyLevel]

roles

A list of roles being added or removed from a member.

If a role is not found then it is a Object with the ID and name being filled in.

Type:

List[Union[Role, Object]]

nick

The nickname of a member.

See also Member.nick

Type:

Optional[str]

deaf

Whether the member is being server deafened.

See also VoiceState.deaf.

Type:

bool

mute

Whether the member is being server muted.

See also VoiceState.mute.

Type:

bool

permissions

The permissions of a role.

See also Role.permissions.

Type:

Permissions

colour
color

The colour of a role.

See also Role.colour

Type:

Colour

hoist

Whether the role is being hoisted or not.

See also Role.hoist

Type:

bool

mentionable

Whether the role is mentionable or not.

See also Role.mentionable

Type:

bool

code

The invite’s code.

See also Invite.code

Type:

str

channel

A guild channel.

If the channel is not found then it is a Object with the ID being set. In some cases the channel name is also set.

Type:

Union[abc.GuildChannel, Object]

inviter

The user who created the invite.

See also Invite.inviter.

Type:

Optional[User, Object]

max_uses

The invite’s max uses.

See also Invite.max_uses.

Type:

int

uses

The invite’s current uses.

See also Invite.uses.

Type:

int

max_age

The invite’s max age in seconds.

See also Invite.max_age.

Type:

int

temporary

If the invite is a temporary invite.

See also Invite.temporary.

Type:

bool

allow
deny

The permissions being allowed or denied.

Type:

Permissions

id

The ID of the object being changed.

Type:

int

avatar

The avatar of a member.

See also User.avatar.

Type:

Asset

slowmode_delay

The number of seconds members have to wait before sending another message or creating another thread in the channel.

See also TextChannel.slowmode_delay, VoiceChannel.slowmode_delay, StageChannel.slowmode_delay, ForumChannel.slowmode_delay, MediaChannel.slowmode_delay or Thread.slowmode_delay.

Type:

int

default_thread_slowmode_delay

The default number of seconds members have to wait before sending another message in new threads created in the channel.

See also TextChannel.default_thread_slowmode_delay, ForumChannel.default_thread_slowmode_delay or MediaChannel.default_thread_slowmode_delay.

Type:

int

rtc_region

The region for the voice or stage channel’s voice communication. A value of None indicates automatic voice region detection.

See also VoiceChannel.rtc_region or StageChannel.rtc_region.

Type:

str

video_quality_mode

The camera video quality for the voice or stage channel’s participants.

See also VoiceChannel.video_quality_mode or StageChannel.video_quality_mode.

Type:

VideoQualityMode

user_limit

The voice channel’s user limit.

See also VoiceChannel.user_limit, or StageChannel.user_limit.

Type:

int

nsfw

Whether the channel is marked as “not safe for work”.

See also TextChannel.nsfw, VoiceChannel.nsfw, StageChannel.nsfw, ForumChannel.nsfw or MediaChannel.nsfw.

Type:

bool

format_type

The format type of a sticker being changed.

See also GuildSticker.format

Type:

StickerFormatType

emoji

The name of the sticker’s or role’s emoji being changed.

See also GuildSticker.emoji or Role.emoji.

Type:

str

description

The description of a guild, sticker or a guild scheduled event being changed.

See also Guild.description, GuildSticker.description, GuildScheduledEvent.description

Type:

str

available

The availability of a sticker being changed.

See also GuildSticker.available

Type:

bool

archived

The thread is now archived.

Type:

bool

locked

The thread is being locked or unlocked.

Type:

bool

auto_archive_duration

The thread’s auto archive duration being changed.

See also Thread.auto_archive_duration

Type:

int

default_auto_archive_duration

The default auto archive duration for newly created threads being changed.

Type:

int

invitable

Whether non-moderators can add other non-moderators to the thread.

Type:

bool

timeout

The datetime when the timeout expires, if any.

Type:

datetime.datetime

entity_type

The entity type of a guild scheduled event being changed.

Type:

GuildScheduledEventEntityType

location

The location of a guild scheduled event being changed.

Type:

str

status

The status of a guild scheduled event being changed.

Type:

GuildScheduledEventStatus

image

The cover image of a guild scheduled event being changed.

Type:

Asset

command_permissions

A mapping of target ID to guild permissions of an application command.

Note that only changed permission entries are included, not necessarily all of the command’s permissions.

Type:

Dict[int, ApplicationCommandPermissions]

application_id

The ID of the application that created a webhook.

Type:

int

flags

The channel’s flags.

See also abc.GuildChannel.flags or Thread.flags.

Type:

ChannelFlags

system_channel_flags

The guild’s system channel settings.

See also Guild.system_channel_flags.

Type:

SystemChannelFlags

enabled

Whether something was enabled or disabled.

Type:

bool

trigger_type

The trigger type of an auto moderation rule being changed.

Type:

AutoModTriggerType

event_type

The event type of an auto moderation rule being changed.

Type:

AutoModEventType

actions

The list of actions of an auto moderation rule being changed.

Type:

List[AutoModAction]

trigger_metadata

The additional trigger metadata of an auto moderation rule being changed.

Type:

AutoModTriggerMetadata

exempt_roles

The list of roles that are exempt from an auto moderation rule being changed.

If a role is not found then it is an Object with the ID being set.

Type:

List[Union[Role, Object]]

exempt_channels

The list of channels that are exempt from an auto moderation rule being changed.

If a channel is not found then it is an Object with the ID being set.

Type:

List[Union[abc.GuildChannel, Object]]

applied_tags

The tags applied to a thread in a forum/media channel being changed.

If a tag is not found, then it is an Object with the ID being set.

Type:

List[Union[ForumTag, Object]]

available_tags

The available tags for threads in a forum/media channel being changed.

Type:

List[ForumTag]

default_reaction

The default emoji shown for reacting to threads in a forum/media channel being changed.

Due to a Discord limitation, this will have an empty name if it is a custom PartialEmoji.

Type:

Optional[Union[Emoji, PartialEmoji]]

default_sort_order

The default sort order of threads in a forum/media channel being changed.

Type:

Optional[ThreadSortOrder]

Enumerations

AuditLogAction

class disnake.AuditLogAction[source]

Represents the type of action being done for a AuditLogEntry, which is retrievable via Guild.audit_logs() or via the on_audit_log_entry_create() event.

guild_update

The guild has updated. Things that trigger this include:

  • Changing the guild vanity URL

  • Changing the guild invite splash

  • Changing the guild AFK channel or timeout

  • Changing the guild voice server region

  • Changing the guild icon, banner, or discovery splash

  • Changing the guild moderation settings

  • Changing things related to the guild widget

When this is the action, the type of target is the Guild.

Possible attributes for AuditLogDiff:

channel_create

A new channel was created.

When this is the action, the type of target is either a abc.GuildChannel or Object with an ID.

A more filled out object in the Object case can be found by using after.

Possible attributes for AuditLogDiff:

channel_update

A channel was updated. Things that trigger this include:

  • The channel name or topic was changed

  • The channel bitrate was changed

When this is the action, the type of target is the abc.GuildChannel or Object with an ID.

A more filled out object in the Object case can be found by using after or before.

Possible attributes for AuditLogDiff:

channel_delete

A channel was deleted.

When this is the action, the type of target is an Object with an ID.

A more filled out object can be found by using the before object.

Possible attributes for AuditLogDiff:

overwrite_create

A channel permission overwrite was created.

When this is the action, the type of target is the abc.GuildChannel or Object with an ID.

When this is the action, the type of extra is either a Role or Member. If the object is not found then it is a Object with an ID being filled, additionally if the object refers to a role then the Object has also a name attribute.

Possible attributes for AuditLogDiff:

Changed in version 2.6: type for this action is now an int.

overwrite_update

A channel permission overwrite was changed, this is typically when the permission values change.

See overwrite_create for more information on how the target and extra fields are set.

Possible attributes for AuditLogDiff:

Changed in version 2.6: type for this action is now an int.

overwrite_delete

A channel permission overwrite was deleted.

See overwrite_create for more information on how the target and extra fields are set.

Possible attributes for AuditLogDiff:

Changed in version 2.6: type for this action is now an int.

kick

A member was kicked.

When this is the action, the type of target is the User who got kicked. If the user is not found then it is a Object with the user’s ID.

When this is the action, the type of extra may be set to an unspecified proxy object with one attribute:

  • integration_type: A string representing the type of the integration which performed the action, if any.

When this is the action, changes is empty.

member_prune

A member prune was triggered.

When this is the action, the type of target is set to None.

When this is the action, the type of extra is set to an unspecified proxy object with two attributes:

  • delete_member_days: An integer specifying how far the prune was.

  • members_removed: An integer specifying how many members were removed.

When this is the action, changes is empty.

ban

A member was banned.

When this is the action, the type of target is the User who got banned. If the user is not found then it is a Object with the user’s ID.

When this is the action, changes is empty.

unban

A member was unbanned.

When this is the action, the type of target is the User who got unbanned. If the user is not found then it is a Object with the user’s ID.

When this is the action, changes is empty.

member_update

A member has updated. This triggers in the following situations:

  • A nickname was changed

  • They were server muted or deafened (or it was undone)

  • They were timed out

When this is the action, the type of target is the Member or User who got updated. If the user is not found then it is a Object with the user’s ID.

Possible attributes for AuditLogDiff:

member_role_update

A member’s role has been updated. This triggers when a member either gains a role or loses a role.

When this is the action, the type of target is the Member or User who got the role. If the user is not found then it is a Object with the user’s ID.

When this is the action, the type of extra may be set to an unspecified proxy object with one attribute:

  • integration_type: A string representing the type of the integration which performed the action, if any.

Possible attributes for AuditLogDiff:

member_move

A member’s voice channel has been updated. This triggers when a member is moved to a different voice channel.

When this is the action, the type of extra is set to an unspecified proxy object with two attributes:

  • channel: A abc.GuildChannel or Object with the channel ID where the members were moved.

  • count: An integer specifying how many members were moved.

New in version 1.3.

member_disconnect

A member’s voice state has changed. This triggers when a member is force disconnected from voice.

When this is the action, the type of extra is set to an unspecified proxy object with one attribute:

  • count: An integer specifying how many members were disconnected.

New in version 1.3.

bot_add

A bot was added to the guild.

When this is the action, the type of target is the Member or User which was added to the guild. If the user is not found then it is a Object with an ID.

New in version 1.3.

role_create

A new role was created.

When this is the action, the type of target is the Role or a Object with the ID.

Possible attributes for AuditLogDiff:

role_update

A role was updated. This triggers in the following situations:

  • The name has changed

  • The permissions have changed

  • The colour has changed

  • Its hoist/mentionable state has changed

When this is the action, the type of target is the Role or a Object with the ID.

Possible attributes for AuditLogDiff:

role_delete

A role was deleted.

When this is the action, the type of target is the Object with the ID.

Possible attributes for AuditLogDiff:

invite_create

An invite was created.

When this is the action, the type of target is the Invite that was created.

Possible attributes for AuditLogDiff:

invite_update

An invite was updated.

When this is the action, the type of target is the Invite that was updated.

invite_delete

An invite was deleted.

When this is the action, the type of target is the Invite that was deleted.

Possible attributes for AuditLogDiff:

webhook_create

A webhook was created.

When this is the action, the type of target is the Webhook or Object with the webhook ID.

Possible attributes for AuditLogDiff:

Changed in version 2.6: Added application_id.

Changed in version 2.6: type for this action is now a WebhookType.

Changed in version 2.6: Added support for Webhook instead of plain Objects.

webhook_update

A webhook was updated. This trigger in the following situations:

  • The webhook name changed

  • The webhook channel changed

When this is the action, the type of target is the Webhook or Object with the webhook ID.

Possible attributes for AuditLogDiff:

Changed in version 2.6: Added support for Webhook instead of plain Objects.

webhook_delete

A webhook was deleted.

When this is the action, the type of target is the Object with the webhook ID.

Possible attributes for AuditLogDiff:

Changed in version 2.6: Added application_id.

Changed in version 2.6: type for this action is now a WebhookType.

emoji_create

An emoji was created.

When this is the action, the type of target is the Emoji or Object with the emoji ID.

Possible attributes for AuditLogDiff:

emoji_update

An emoji was updated. This triggers when the name has changed.

When this is the action, the type of target is the Emoji or Object with the emoji ID.

Possible attributes for AuditLogDiff:

emoji_delete

An emoji was deleted.

When this is the action, the type of target is the Object with the emoji ID.

Possible attributes for AuditLogDiff:

message_delete

A message was deleted by a moderator. Note that this only triggers if the message was deleted by someone other than the author.

When this is the action, the type of target is the Member or User who had their message deleted. If the user is not found then it is a Object with the user’s ID.

When this is the action, the type of extra is set to an unspecified proxy object with two attributes:

  • count: An integer specifying how many messages were deleted.

  • channel: A abc.GuildChannel, Thread or Object with the channel ID where the message got deleted.

message_bulk_delete

Messages were bulk deleted by a moderator.

When this is the action, the type of target is the TextChannel or Object with the ID of the channel that was purged.

When this is the action, the type of extra is set to an unspecified proxy object with one attribute:

  • count: An integer specifying how many messages were deleted.

New in version 1.3.

message_pin

A message was pinned in a channel.

When this is the action, the type of target is the Member or User who had their message pinned. If the user is not found then it is a Object with the user’s ID.

When this is the action, the type of extra is set to an unspecified proxy object with two attributes:

  • channel: A abc.GuildChannel, Thread or Object with the channel ID where the message was pinned.

  • message_id: the ID of the message which was pinned.

New in version 1.3.

message_unpin

A message was unpinned in a channel.

When this is the action, the type of target is the Member or User who had their message unpinned. If the user is not found then it is a Object with the user’s ID.

When this is the action, the type of extra is set to an unspecified proxy object with two attributes:

  • channel: A abc.GuildChannel, Thread or Object with the channel ID where the message was unpinned.

  • message_id: the ID of the message which was unpinned.

New in version 1.3.

integration_create

A guild integration was created.

When this is the action, the type of target is the PartialIntegration or Object with the integration ID of the integration which was created.

Possible attributes for AuditLogDiff:

New in version 1.3.

Changed in version 2.6: Added support for PartialIntegration instead of plain Objects.

integration_update

A guild integration was updated.

When this is the action, the type of target is the PartialIntegration or Object with the integration ID of the integration which was updated.

New in version 1.3.

Changed in version 2.6: Added support for PartialIntegration instead of plain Objects.

integration_delete

A guild integration was deleted.

When this is the action, the type of target is the Object with the integration ID of the integration which was deleted.

Possible attributes for AuditLogDiff:

New in version 1.3.

guild_scheduled_event_create

A guild scheduled event was created.

When this is the action, the type of target is the GuildScheduledEvent or Object with the ID of the event which was created.

Possible attributes for AuditLogDiff:

New in version 2.3.

guild_scheduled_event_update

A guild scheduled event was updated.

When this is the action, the type of target is the GuildScheduledEvent or Object with the ID of the event which was updated.

Possible attributes for AuditLogDiff:

New in version 2.3.

guild_scheduled_event_delete

A guild scheduled event was deleted.

When this is the action, the type of target is the Object with the ID of the event which was deleted.

Possible attributes for AuditLogDiff:

New in version 2.3.

stage_instance_create

A stage instance was started.

When this is the action, the type of target is the StageInstance or Object with the ID of the stage instance which was created.

When this is the action, the type of extra is set to an unspecified proxy object with one attribute:

  • channel: The StageChannel or Object with the channel ID where the stage instance was started.

Possible attributes for AuditLogDiff:

New in version 2.0.

stage_instance_update

A stage instance was updated.

When this is the action, the type of target is the StageInstance or Object with the ID of the stage instance which was updated.

See stage_instance_create for more information on how the extra field is set.

Possible attributes for AuditLogDiff:

New in version 2.0.

stage_instance_delete

A stage instance was ended.

See stage_instance_create for more information on how the extra field is set.

Possible attributes for AuditLogDiff:

New in version 2.0.

sticker_create

A sticker was created.

When this is the action, the type of target is the GuildSticker or Object with the ID of the sticker which was created.

Possible attributes for AuditLogDiff:

New in version 2.0.

sticker_update

A sticker was updated.

When this is the action, the type of target is the GuildSticker or Object with the ID of the sticker which was updated.

Possible attributes for AuditLogDiff:

New in version 2.0.

sticker_delete

A sticker was deleted.

When this is the action, the type of target is the Object with the ID of the sticker which was deleted.

Possible attributes for AuditLogDiff:

New in version 2.0.

thread_create

A thread was created.

When this is the action, the type of target is the Thread or Object with the ID of the thread which was created.

Possible attributes for AuditLogDiff:

New in version 2.0.

thread_update

A thread was updated.

When this is the action, the type of target is the Thread or Object with the ID of the thread which was updated.

Possible attributes for AuditLogDiff:

New in version 2.0.

thread_delete

A thread was deleted.

When this is the action, the type of target is the Object with the ID of the thread which was deleted.

Possible attributes for AuditLogDiff:

New in version 2.0.

application_command_permission_update

The permissions of an application command were updated.

When this is the action, the type of target is the ApplicationCommand, PartialIntegration, or Object with the ID of the command whose permissions were updated or the application ID if these are application-wide permissions.

When this is the action, the type of extra is set to an unspecified proxy object with one attribute:

Possible attributes for AuditLogDiff:

New in version 2.5.

Changed in version 2.6: Added support for PartialIntegration, and added integration to extra.

automod_rule_create

An auto moderation rule was created.

When this is the action, the type of target is the AutoModRule or Object with the ID of the auto moderation rule which was created.

Possible attributes for AuditLogDiff:

New in version 2.6.

automod_rule_update

An auto moderation rule was updated.

When this is the action, the type of target is the AutoModRule or Object with the ID of the auto moderation rule which was updated.

Possible attributes for AuditLogDiff:

New in version 2.6.

automod_rule_delete

An auto moderation rule was deleted.

When this is the action, the type of target is the Object with the ID of the auto moderation rule which was deleted.

Possible attributes for AuditLogDiff:

New in version 2.6.

automod_block_message

A message was blocked by an auto moderation rule.

When this is the action, the type of target is the Member or User who had their message blocked. If the user is not found then it is a Object with the user’s ID.

When this is the action, the type of extra is set to an unspecified proxy object with these attributes:

  • channel: A abc.GuildChannel, Thread or Object with the channel ID where the message got blocked. May also be None.

  • rule_name: A str with the name of the rule that matched.

  • rule_trigger_type: An AutoModTriggerType value with the trigger type of the rule.

New in version 2.6.

automod_send_alert_message

An alert message was sent by an auto moderation rule.

When this is the action, the type of target is the Member or User who had their message flagged. If the user is not found then it is a Object with the user’s ID.

See automod_block_message for more information on how the extra field is set.

New in version 2.6.

automod_timeout

A user was timed out by an auto moderation rule.

When this is the action, the type of target is the Member or User who was timed out. If the user is not found then it is a Object with the user’s ID.

See automod_block_message for more information on how the extra field is set.

New in version 2.6.

creator_monetization_request_created

A creator monetization request was created.

New in version 2.10.

creator_monetization_terms_accepted

The creator monetization terms were accepted.

New in version 2.10.

AuditLogActionCategory

class disnake.AuditLogActionCategory[source]

Represents the category that the AuditLogAction belongs to.

This can be retrieved via AuditLogEntry.category.

create

The action is the creation of something.

delete

The action is the deletion of something.

update

The action is the update of something.

Events