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:
 
 - 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 - Objectif the user could not be found.
 - 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- AuditLogActionfor which actions have this field filled out.- Type:
- Any 
 
 - created_at¶
- Returns the entry’s creation time in UTC. - Type:
 
 - category¶
- The category of the action, if applicable. - Type:
- Optional[ - AuditLogActionCategory]
 
 - changes¶
- The list of changes this entry has. - Type:
 
 - before¶
- The target’s prior state. - Type:
 
 - after¶
- The target’s subsequent state. - Type:
 
 
Data Classes¶
AuditLogChanges¶
- class disnake.AuditLogChanges[source]¶
- An audit log change set. - before¶
- The old value. The attribute has the type of - AuditLogDiff.- Depending on the - AuditLogActionCategoryretrieved by- category, the data retrieved by this attribute differs:
 - after¶
- The new value. The attribute has the type of - AuditLogDiff.- Depending on the - AuditLogActionCategoryretrieved by- category, the data retrieved by this attribute differs:
 
AuditLogDiff¶
- actions
- afk_channel
- afk_timeout
- allow
- application_id
- applied_tags
- archived
- auto_archive_duration
- available
- available_tags
- avatar
- banner
- bitrate
- channel
- code
- color
- colour
- command_permissions
- deaf
- default_auto_archive_duration
- default_message_notifications
- default_notifications
- default_reaction
- default_sort_order
- default_thread_slowmode_delay
- deny
- description
- discovery_splash
- emoji
- enabled
- entity_type
- event_type
- exempt_channels
- exempt_roles
- explicit_content_filter
- flags
- format_type
- hoist
- icon
- id
- image
- invitable
- inviter
- location
- locked
- max_age
- max_uses
- mentionable
- mfa_level
- mute
- name
- nick
- nsfw
- overwrites
- owner
- permissions
- position
- preferred_locale
- premium_progress_bar_enabled
- privacy_level
- public_updates_channel
- region
- roles
- rtc_region
- rules_channel
- slowmode_delay
- splash
- status
- system_channel
- system_channel_flags
- temporary
- timeout
- topic
- trigger_metadata
- trigger_type
- type
- user_limit
- uses
- vanity_url_code
- verification_level
- video_quality_mode
- volume
- widget_channel
- widget_enabled
- 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.
 - icon¶
- A guild’s or role’s icon. - See also - Guild.iconor- Role.icon.- Type:
 
 - splash¶
- The guild’s invite splash. See also - Guild.splash.- Type:
 
 - discovery_splash¶
- The guild’s discovery splash. See also - Guild.discovery_splash.- Type:
 
 - banner¶
- The guild’s banner. See also - Guild.banner.- Type:
 
 - owner¶
- The guild’s owner. See also - Guild.owner
 - region¶
- The guild’s voice region. See also - Guild.region.- Type:
 
 - afk_channel¶
- The guild’s AFK channel. - If this could not be found, then it falls back to a - Objectwith 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 - Objectwith 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 - Objectwith 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 - Objectwith 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:
 
 - mfa_level¶
- The guild’s MFA level. See - Guild.mfa_level.- Type:
 
 - widget_channel¶
- The widget’s channel. - If this could not be found then it falls back to a - Objectwith the ID being set.- Type:
- Union[ - abc.GuildChannel,- Object]
 
 - verification_level¶
- The guild’s verification level. - See also - Guild.verification_level.- Type:
 
 - Whether the guild’s premium progress bar is enabled. - See also - Guild.premium_progress_bar_enabled.- Type:
 
 - default_notifications¶
- The guild’s default notification level. - See also - Guild.default_notifications.- Type:
 
 - explicit_content_filter¶
- The guild’s content filter. - See also - Guild.explicit_content_filter.- Type:
 
 - vanity_url_code¶
- The guild’s vanity URL code. - See also - Guild.vanity_invite(),- Guild.edit(), and- Guild.vanity_url_code.- Type:
 
 - position¶
- The position of a - Roleor- abc.GuildChannel.- Type:
 
 - 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,- ForumChannelor- MediaChannel.- See also - TextChannel.topic,- StageChannel.topic,- StageInstance.topic,- ForumChannel.topicor- MediaChannel.topic.- Type:
 
 - bitrate¶
- The bitrate of a - VoiceChannelor- StageChannel.- See also - VoiceChannel.bitrateor- StageChannel.bitrate.- Type:
 
 - overwrites¶
- A list of permission overwrite tuples that represents a target and a - PermissionOverwritefor said target.- The first element is the object being targeted, which can either be a - Memberor- Useror- Role. If this object is not found then it is a- Objectwith an ID being filled and a- typeattribute 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:
 
 - roles¶
- A list of roles being added or removed from a member. - If a role is not found then it is a - Objectwith the ID and name being filled in.
 - 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:
 
 - mute¶
- Whether the member is being server muted. - See also - VoiceState.mute.- Type:
 
 - permissions¶
- The permissions of a role. - See also - Role.permissions.- Type:
 
 - colour¶
- color¶
- The colour of a role. - See also - Role.colour- Type:
 
 - hoist¶
- Whether the role is being hoisted or not. - See also - Role.hoist- Type:
 
 - mentionable¶
- Whether the role is mentionable or not. - See also - Role.mentionable- Type:
 
 - code¶
- The invite’s code. - See also - Invite.code- Type:
 
 - channel¶
- A guild channel. - If the channel is not found then it is a - Objectwith 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.
 - max_uses¶
- The invite’s max uses. - See also - Invite.max_uses.- Type:
 
 - uses¶
- The invite’s current uses. - See also - Invite.uses.- Type:
 
 - max_age¶
- The invite’s max age in seconds. - See also - Invite.max_age.- Type:
 
 - temporary¶
- If the invite is a temporary invite. - See also - Invite.temporary.- Type:
 
 - avatar¶
- The avatar of a member. - See also - User.avatar.- Type:
 
 - 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_delayor- Thread.slowmode_delay.- Type:
 
 - 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_delayor- MediaChannel.default_thread_slowmode_delay.- Type:
 
 - rtc_region¶
- The region for the voice or stage channel’s voice communication. A value of - Noneindicates automatic voice region detection.- See also - VoiceChannel.rtc_regionor- StageChannel.rtc_region.- Type:
 
 - video_quality_mode¶
- The camera video quality for the voice or stage channel’s participants. - See also - VoiceChannel.video_quality_modeor- StageChannel.video_quality_mode.- Type:
 
 - user_limit¶
- The voice channel’s user limit. - See also - VoiceChannel.user_limit, or- StageChannel.user_limit.- Type:
 
 - nsfw¶
- Whether the channel is marked as “not safe for work”. - See also - TextChannel.nsfw,- VoiceChannel.nsfw,- StageChannel.nsfw,- ForumChannel.nsfwor- MediaChannel.nsfw.- Type:
 
 - format_type¶
- The format type of a sticker being changed. - See also - GuildSticker.format- Type:
 
 - emoji¶
- For stickers or roles, the emoji name of the target being changed (this will be of type - str).- For soundboard sounds, the associated emoji of the target being changed (this will be of type Optional[Union[ - Emoji,- PartialEmoji]]).- See also - GuildSticker.emoji,- Role.emoji, or- GuildSoundboardSound.emoji.- Type:
- Union[ - str, Optional[Union[- Emoji,- PartialEmoji]]]
 
 - description¶
- The description of a guild, sticker or a guild scheduled event being changed. - See also - Guild.description,- GuildSticker.description,- GuildScheduledEvent.description- Type:
 
 - available¶
- The availability of a sticker being changed. - See also - GuildSticker.available- Type:
 
 - auto_archive_duration¶
- The thread’s auto archive duration being changed. - See also - Thread.auto_archive_duration- Type:
 
 - default_auto_archive_duration¶
- The default auto archive duration for newly created threads being changed. - Type:
 
 - timeout¶
- The datetime when the timeout expires, if any. - Type:
 
 - entity_type¶
- The entity type of a guild scheduled event being changed. 
 - status¶
- The status of a guild scheduled event being changed. 
 - 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]
 
 - flags¶
- The channel’s flags. - See also - abc.GuildChannel.flagsor- Thread.flags.- Type:
 
 - system_channel_flags¶
- The guild’s system channel settings. - See also - Guild.system_channel_flags.- Type:
 
 - trigger_type¶
- The trigger type of an auto moderation rule being changed. - Type:
 
 - event_type¶
- The event type of an auto moderation rule being changed. - Type:
 
 - 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:
 
 - 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 - Objectwith the ID being set.
 - 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 - Objectwith 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 - Objectwith the ID being set.
 - 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 - nameif 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 - targetis the- Guild.- Possible attributes for - AuditLogDiff:
 - channel_create¶
- A new channel was created. - When this is the action, the type of - targetis either a- abc.GuildChannelor- Objectwith an ID.- A more filled out object in the - Objectcase 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 - targetis the- abc.GuildChannelor- Objectwith an ID.- A more filled out object in the - Objectcase can be found by using- afteror- before.- Possible attributes for - AuditLogDiff:
 - channel_delete¶
- A channel was deleted. - When this is the action, the type of - targetis an- Objectwith an ID.- A more filled out object can be found by using the - beforeobject.- Possible attributes for - AuditLogDiff:
 - overwrite_create¶
- A channel permission overwrite was created. - When this is the action, the type of - targetis the- abc.GuildChannelor- Objectwith an ID.- When this is the action, the type of - extrais either a- Roleor- Member. If the object is not found then it is a- Objectwith an ID being filled, additionally if the object refers to a role then the- Objecthas also a- nameattribute.- Possible attributes for - AuditLogDiff:
 - overwrite_update¶
- A channel permission overwrite was changed, this is typically when the permission values change. - See - overwrite_createfor more information on how the- targetand- extrafields are set.- Possible attributes for - AuditLogDiff:
 - overwrite_delete¶
- A channel permission overwrite was deleted. - See - overwrite_createfor more information on how the- targetand- extrafields are set.- Possible attributes for - AuditLogDiff:
 - kick¶
- A member was kicked. - When this is the action, the type of - targetis the- Userwho got kicked. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, the type of - extramay 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, - changesis empty.
 - member_prune¶
- A member prune was triggered. - When this is the action, the type of - targetis set to- None.- When this is the action, the type of - extrais 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, - changesis empty.
 - ban¶
- A member was banned. - When this is the action, the type of - targetis the- Userwho got banned. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, - changesis empty.
 - unban¶
- A member was unbanned. - When this is the action, the type of - targetis the- Userwho got unbanned. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, - changesis 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 - targetis the- Memberor- Userwho got updated. If the user is not found then it is a- Objectwith 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 - targetis the- Memberor- Userwho got the role. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, the type of - extramay 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 - extrais set to an unspecified proxy object with two attributes:- channel: A- abc.GuildChannelor- Objectwith 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 - extrais 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 - targetis the- Memberor- Userwhich was added to the guild. If the user is not found then it is a- Objectwith an ID.- New in version 1.3. 
 - role_create¶
- A new role was created. - When this is the action, the type of - targetis the- Roleor a- Objectwith 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 - targetis the- Roleor a- Objectwith the ID.- Possible attributes for - AuditLogDiff:
 - role_delete¶
- A role was deleted. - When this is the action, the type of - targetis the- Objectwith the ID.- Possible attributes for - AuditLogDiff:
 - invite_create¶
- An invite was created. - When this is the action, the type of - targetis the- Invitethat was created.- Possible attributes for - AuditLogDiff:
 - invite_update¶
- An invite was updated. - When this is the action, the type of - targetis the- Invitethat was updated.
 - invite_delete¶
- An invite was deleted. - When this is the action, the type of - targetis the- Invitethat was deleted.- Possible attributes for - AuditLogDiff:
 - webhook_create¶
- A webhook was created. - When this is the action, the type of - targetis the- Webhookor- Objectwith the webhook ID.- Possible attributes for - AuditLogDiff:- Changed in version 2.6: Added - application_id.- Changed in version 2.6: - typefor this action is now a- WebhookType.
 - 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 - targetis the- Webhookor- Objectwith the webhook ID.- Possible attributes for - AuditLogDiff:
 - webhook_delete¶
- A webhook was deleted. - When this is the action, the type of - targetis the- Objectwith the webhook ID.- Possible attributes for - AuditLogDiff:- Changed in version 2.6: Added - application_id.- Changed in version 2.6: - typefor this action is now a- WebhookType.
 - emoji_create¶
- An emoji was created. - When this is the action, the type of - targetis the- Emojior- Objectwith 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 - targetis the- Emojior- Objectwith the emoji ID.- Possible attributes for - AuditLogDiff:
 - emoji_delete¶
- An emoji was deleted. - When this is the action, the type of - targetis the- Objectwith 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 - targetis the- Memberor- Userwho had their message deleted. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, the type of - extrais set to an unspecified proxy object with two attributes:- count: An integer specifying how many messages were deleted.
- channel: A- abc.GuildChannel,- Threador- Objectwith 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 - targetis the- TextChannelor- Objectwith the ID of the channel that was purged.- When this is the action, the type of - extrais 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 - targetis the- Memberor- Userwho had their message pinned. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, the type of - extrais set to an unspecified proxy object with two attributes:- channel: A- abc.GuildChannel,- Threador- Objectwith 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 - targetis the- Memberor- Userwho had their message unpinned. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, the type of - extrais set to an unspecified proxy object with two attributes:- channel: A- abc.GuildChannel,- Threador- Objectwith 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 - targetis the- PartialIntegrationor- Objectwith 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 - PartialIntegrationinstead of plain- Objects.
 - integration_update¶
- A guild integration was updated. - When this is the action, the type of - targetis the- PartialIntegrationor- Objectwith the integration ID of the integration which was updated.- New in version 1.3. - Changed in version 2.6: Added support for - PartialIntegrationinstead of plain- Objects.
 - integration_delete¶
- A guild integration was deleted. - When this is the action, the type of - targetis the- Objectwith 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 - targetis the- GuildScheduledEventor- Objectwith 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 - targetis the- GuildScheduledEventor- Objectwith 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 - targetis the- Objectwith 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 - targetis the- StageInstanceor- Objectwith the ID of the stage instance which was created.- When this is the action, the type of - extrais set to an unspecified proxy object with one attribute:- channel: The- StageChannelor- Objectwith 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 - targetis the- StageInstanceor- Objectwith the ID of the stage instance which was updated.- See - stage_instance_createfor more information on how the- extrafield is set.- Possible attributes for - AuditLogDiff:- New in version 2.0. 
 - stage_instance_delete¶
- A stage instance was ended. - See - stage_instance_createfor more information on how the- extrafield 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 - targetis the- GuildStickeror- Objectwith 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 - targetis the- GuildStickeror- Objectwith 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 - targetis the- Objectwith 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 - targetis the- Threador- Objectwith 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 - targetis the- Threador- Objectwith 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 - targetis the- Objectwith 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 - targetis the- ApplicationCommand,- PartialIntegration, or- Objectwith 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 - extrais set to an unspecified proxy object with one attribute:- integration: The- PartialIntegrationor- Objectwith the application ID of the associated application.
 - Possible attributes for - AuditLogDiff:- New in version 2.5. - Changed in version 2.6: Added support for - PartialIntegration, and added- integrationto- extra.
 - soundboard_sound_create¶
- A soundboard sound was created. - Possible attributes for - AuditLogDiff:- New in version 2.10. 
 - soundboard_sound_update¶
- A soundboard sound was updated. - Possible attributes for - AuditLogDiff:- New in version 2.10. 
 - soundboard_sound_delete¶
- A soundboard sound was deleted. - Possible attributes for - AuditLogDiff:- New in version 2.10. 
 - automod_rule_create¶
- An auto moderation rule was created. - When this is the action, the type of - targetis the- AutoModRuleor- Objectwith 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 - targetis the- AutoModRuleor- Objectwith 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 - targetis the- Objectwith 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 - targetis the- Memberor- Userwho had their message blocked. If the user is not found then it is a- Objectwith the user’s ID.- When this is the action, the type of - extrais set to an unspecified proxy object with these attributes:- channel: A- abc.GuildChannel,- Threador- Objectwith the channel ID where the message got blocked. May also be- None.
- rule_name: A- strwith the name of the rule that matched.
- rule_trigger_type: An- AutoModTriggerTypevalue 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 - targetis the- Memberor- Userwho had their message flagged. If the user is not found then it is a- Objectwith the user’s ID.- See - automod_block_messagefor more information on how the- extrafield 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 - targetis the- Memberor- Userwho was timed out. If the user is not found then it is a- Objectwith the user’s ID.- See - automod_block_messagefor more information on how the- extrafield is set.- New in version 2.6. 
 - automod_quarantine_user¶
- A member was quarantined by auto moderation. - When this is the action, the type of - targetis the- Memberor- Userwho was quarantined. If the user is not found then it is a- Objectwith the user’s ID.- See - automod_block_messagefor more information on how the- extrafield is set.- New in version 2.11. 
 - 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 - AuditLogActionbelongs 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.