Audit Wogs

Wowking with audit wogs is a compwicated pwocess with a-a-a wot o-of machinyewy invowved. The w-wibwawy attempts to make this usew-fwiendwy by making use of a coupwe of data cwasses a-and enyums, wisted bewow.

Discowd Modews

AuditWogEntwy

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

Wepwesents an Audit Wog entwy.

You can wetwieve these via Guild.audit_logs(), ow via the on_audit_log_entry_create() e-e-event.

x == y

Checks if two entwies awe equaw.

x != y

Checks if two entwies awe nyot equaw.

hash(x)

Wetuwns the entwy’s hash.

Changed in vewsion 1.7: Audit wog entwies awe nyow c-compawabwe and hashabwe.

action

The action that w-w-was donye.

Type:

AuditLogAction

user

The usew who inyitiated this action. Usuawwy Member, unwess gonye then it’s a User.

Changed in vewsion 2.8: May nyow be an Object if the usew couwd nyot be found.

Type:

Optionyaw[Unyion[Member, User, Object]]

id

The entwy ID.

Type:

int

target

The tawget that got changed. The exact type of this depends on the action being donye.

Type:

Any

extra

E-Extwa infowmation that this entwy has that might b-be usefuw. Fow most actions, this is None. Howevew in s-some cases i-i-it contains extwa infowmation. See AuditLogAction fow which actions h-h-have this fiewd fiwwed out.

Type:

Any

reason

The weason t-this action was d-d-donye.

Type:

Optionyaw[str]

created_at

Wetuwns the entwy’s cweation time i-i-in UTC.

Type:

datetime.datetime

category

The categowy of the action, if appwicabwe.

Type:

Optionyaw[AuditLogActionCategory]

changes

The wist of changes this entwy has.

Type:

AuditLogChanges

before

The tawget’s pwiow state.

Type:

AuditLogDiff

after

The tawget’s subsequent state.

Type:

AuditLogDiff

Data Cwasses

AuditWogChanges

Attwibutes
class disnake.AuditLogChanges[source]

An a-audit wog change set.

before

The owd vawue. The attwibute has the type of AuditLogDiff.

Depending on t-the AuditLogActionCategory wetwieved by category, the data wetwieved by this attwibute diffews:

Categowy

Descwiption

create

Aww attwibutes awe s-set to None.

delete

Aww attwibutes awe set to the vawue befowe d-d-dewetion.

update

Aww attwibutes awe set to the vawue befowe updating.

None

Nyo attwibutes awe set.

after

The nyew vawue. The attwibute has the type of AuditLogDiff.

Depending on the AuditLogActionCategory wetwieved by category, the data wetwieved by this attwibute diffews:

Categowy

Descwiption

create

Aww attwibutes awe set to the cweated vawue.

delete

Aww attwibutes awe set to None.

update

Aww attwibutes awe s-set t-to the vawue aftew updating.

None

Nyo attwibutes awe set.

AuditWogDiff

class disnake.AuditLogDiff[source]

Wepwesents an audit wog “change” object. A change o-object has d-d-dynyamic attwibutes that depend on the type of action being donye. Cewtain actions map to cewtain a-a-attwibutes being set.

Nyote that accessing an attwibute that does nyot match the specified action wiww wead to an attwibute ewwow.

To get a wist of attwibutes that h-h-have been set, you can itewate uvw them. To see a wist of aww possibwe attwibutes that c-c-couwd be set based on the action being donye, check the documentation fow AuditLogAction, othewwise check the documentation bewow fow aww attwibutes that awe possibwe.

iter(diff)

Wetuwns an itewatow uvw (attribute, value) tupwes of this diff.

name

A nyame of something.

Type:

str

icon

A guiwd’s ow wowe’s icon.

See awso Guild.icon ow Role.icon.

Type:

Asset

splash

The guiwd’s invite spwash. See awso Guild.splash.

Type:

Asset

discovery_splash

The guiwd’s discuvwy spwash. See awso Guild.discovery_splash.

Type:

Asset

banner

The guiwd’s bannyew. See awso Guild.banner.

Type:

Asset

owner

The guiwd’s ownyew. See awso Guild.owner

T-T-Type:

Unyion[Member, User, Object]

region

The guiwd’s voice wegion. See awso Guild.region.

Type:

str

afk_channel

The guiwd’s AFK channyew.

If this couwd nyot be found, then it fawws back to a Object with the ID being set.

See Guild.afk_channel.

Type:

U-U-Unyion[VoiceChannel, Object]

system_channel

The guiwd’s system channyew.

If this couwd nyot be found, then it f-f-fawws back t-t-to a Object with the ID being set.

See Guild.system_channel.

Type:

Unyion[TextChannel, Object]

rules_channel

The guiwd’s wuwes channyew.

If this couwd nyot be found t-t-then it fawws back to a Object with the ID being set.

See Guild.rules_channel.

Type:

Unyion[TextChannel, Object]

public_updates_channel

The guiwd’s pubwic updates channyew.

If this c-c-couwd nyot be found then i-it fawws back to a Object with the ID b-being set.

See Guild.public_updates_channel.

Type:

Unyion[TextChannel, Object]

afk_timeout

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

Type:

int

mfa_level

The guiwd’s MFA wevew. See Guild.mfa_level.

Type:

int

widget_enabled

The guiwd’s widget has been enyabwed ow disabwed.

Type:

bool

widget_channel

The widget’s channyew.

If this couwd nyot be found then it fawws back to a Object with the I-ID being set.

Type:

Unyion[abc.GuildChannel, Object]

verification_level

The guiwd’s vewification wevew.

See awso Guild.verification_level.

Type:

VerificationLevel

premium_progress_bar_enabled

Whethew the guiwd’s pwemium pwogwess baw is enyabwed.

See awso Guild.premium_progress_bar_enabled.

Type:

bool

default_notifications

The guiwd’s defauwt nyotification wevew.

See awso Guild.default_notifications.

Type:

NotificationLevel

explicit_content_filter

The g-g-guiwd’s content fiwtew.

See awso Guild.explicit_content_filter.

Type:

ContentFilter

default_message_notifications

The guiwd’s defauwt message nyotification setting.

Type:

int

vanity_url_code

The guiwd’s vanyity UWW code.

S-S-See awso Guild.vanity_invite(), Guild.edit(), and Guild.vanity_url_code.

Type:

str

preferred_locale

The guiwd’s pwefewwed wocawe.

Type:

Locale

position

The position of a Role ow abc.GuildChannel.

Type:

int

type

T-The type of channyew/thwead, stickew, webhook, integwation (str), o-ow pewmission uvwwwite (int).

Type:

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

topic

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

See awso TextChannel.topic, StageChannel.topic, StageInstance.topic, ForumChannel.topic ow MediaChannel.topic.

Type:

str

bitrate

The bitwate of a-a VoiceChannel ow StageChannel.

See awso VoiceChannel.bitrate ow StageChannel.bitrate.

T-Type:

int

overwrites

A wist of pewmission uvwwwite tupwes that wepwesents a tawget and a PermissionOverwrite fow s-s-said tawget.

The fiwst ewement is the object being tawgeted, which can eithew be a Member ow User ow Role. If this object is nyot found then it is a Object with an ID being fiwwed and a type attwibute set to eithew 'role' ow 'member' to hewp decide what type of ID it is.

Type:

Wist[Tupwe[Unyion[Member, User, Role, Object], PermissionOverwrite]]

privacy_level

The pwivacy wevew of the stage instance ow guiwd scheduwed event.

Type:

Unyion[StagePrivacyLevel, GuildScheduledEventPrivacyLevel]

roles

A wist of wowes being added ow wemuvd fwom a membew.

If a wowe is nyot found then it is a Object with the ID and nyame being fiwwed in.

Type:

Wist[Unyion[Role, Object]]

nick

The nyicknyame of a membew.

See a-a-awso Member.nick

Type:

Optionyaw[str]

deaf

Whethew the membew is being sewvew deafenyed.

See awso VoiceState.deaf.

Type:

bool

mute

Whethew the membew is being sewvew muted.

See awso VoiceState.mute.

Type:

bool

permissions

The pewmissions of a wowe.

See awso Role.permissions.

Type:

Permissions

colour
color

T-T-The cowouw of a wowe.

See awso Role.colour

Type:

Colour

hoist

Whethew the wowe is being hoisted ow nyot.

See awso Role.hoist

Type:

bool

mentionable

Whethew the wowe is mentionyabwe ow nyot.

S-S-See awso Role.mentionable

Type:

bool

code

The invite’s code.

See awso Invite.code

Type:

str

channel

A guiwd channyew.

If the channyew is nyot found then it is a Object with the ID being set. In some cases the channyew nyame is awso set.

Type:

Unyion[abc.GuildChannel, Object]

inviter

The usew who cweated the invite.

See awso Invite.inviter.

Type:

Optionyaw[User, Object]

max_uses

The invite’s max uses.

See awso Invite.max_uses.

Type:

int

uses

The invite’s cuwwent uses.

See awso Invite.uses.

Type:

int

max_age

The i-invite’s max age in seconds.

See awso Invite.max_age.

Type:

int

temporary

If the invite is a tempowawy invite.

See awso Invite.temporary.

Type:

bool

allow
deny

The pewmissions being awwowed ow denyied.

Type:

Permissions

id

The ID of the object being changed.

Type:

int

avatar

The avataw of a membew.

See awso User.avatar.

Type:

Asset

slowmode_delay

The nyumbew of seconds membews have to wait befowe sending anyothew message ow cweating anyothew thwead in the channyew.

See awso TextChannel.slowmode_delay, VoiceChannel.slowmode_delay, StageChannel.slowmode_delay, ForumChannel.slowmode_delay, MediaChannel.slowmode_delay ow Thread.slowmode_delay.

T-Type:

int

default_thread_slowmode_delay

The defauwt nyumbew of seconds membews have to wait befowe sending anyothew message i-i-in nyew thweads cweated in the channyew.

See awso TextChannel.default_thread_slowmode_delay, ForumChannel.default_thread_slowmode_delay ow MediaChannel.default_thread_slowmode_delay.

Type:

int

rtc_region

The wegion fow the voice ow stage channyew’s voice communyication. A vawue of None indicates a-a-automatic voice wegion detection.

See awso VoiceChannel.rtc_region ow StageChannel.rtc_region.

Type:

str

video_quality_mode

The camewa video quawity fow the voice ow stage channyew’s pawticipants.

See awso VoiceChannel.video_quality_mode ow StageChannel.video_quality_mode.

Type:

VideoQualityMode

user_limit

The voice channyew’s usew wimit.

S-See awso VoiceChannel.user_limit, ow StageChannel.user_limit.

Type:

int

nsfw

Whethew the channyew is mawked as “nyot safe fow wowk”.

See awso TextChannel.nsfw, VoiceChannel.nsfw, StageChannel.nsfw, ForumChannel.nsfw ow MediaChannel.nsfw.

Type:

bool

format_type

The fowmat type of a stickew being changed.

See awso GuildSticker.format

Type:

StickerFormatType

emoji

Fow stickews ow wowes, the emoji nyame of the tawget being changed (this wiww be of type str).

Fow soundboawd sounds, t-the associated emoji of the tawget being changed (this wiww be of type Optionyaw[Unyion[Emoji, PartialEmoji]]).

See awso GuildSticker.emoji, Role.emoji, ow GuildSoundboardSound.emoji.

Type:

Unyion[str, Optionyaw[Unyion[Emoji, PartialEmoji]]]

description

The descwiption of a guiwd, stickew ow a guiwd scheduwed event being changed.

See awso Guild.description, GuildSticker.description, GuildScheduledEvent.description

T-T-Type:

str

available

The avaiwabiwity of a stickew being changed.

See awso GuildSticker.available

Type:

bool

archived

The thwead is nyow awchived.

Type:

bool

locked

The thwead is being wocked ow unwocked.

Type:

bool

auto_archive_duration

The thwead’s auto awchive duwation being changed.

See awso Thread.auto_archive_duration

Type:

int

default_auto_archive_duration

The defauwt auto awchive duwation fow nyewwy cweated thweads being changed.

Type:

int

invitable

W-Whethew nyon-modewatows can add othew nyon-modewatows to the thwead.

Type:

bool

timeout

T-The datetime when the timeout expiwes, if any.

Type:

datetime.datetime

entity_type

The entity type o-of a g-g-guiwd scheduwed event being changed.

Type:

GuildScheduledEventEntityType

location

The wocation of a guiwd scheduwed event being changed.

Type:

str

status

The status of a g-g-guiwd scheduwed event being changed.

Type:

GuildScheduledEventStatus

image

The cuvw image of a guiwd scheduwed event being changed.

Type:

Asset

command_permissions

A mapping of tawget ID to g-guiwd pewmissions of an appwication command.

Nyote that onwy changed pewmission entwies awe incwuded, nyot nyecessawiwy aww of the command’s pewmissions.

Type:

Dict[int, ApplicationCommandPermissions]

application_id

The ID of the appwication that cweated a webhook.

Type:

int

flags

The channyew’s fwags.

S-S-See awso abc.GuildChannel.flags ow Thread.flags.

Type:

ChannelFlags

system_channel_flags

The guiwd’s system channyew settings.

See awso Guild.system_channel_flags.

Type:

SystemChannelFlags

enabled

Whethew something was enyabwed ow disabwed.

Type:

bool

trigger_type

The twiggew type of an auto modewation wuwe being changed.

Type:

AutoModTriggerType

event_type

The event type of an auto modewation wuwe being changed.

Type:

AutoModEventType

actions

T-The wist of actions of a-an auto modewation wuwe being changed.

Type:

Wist[AutoModAction]

trigger_metadata

The additionyaw twiggew metadata of an auto modewation wuwe being changed.

Type:

AutoModTriggerMetadata

exempt_roles

The wist of wowes that awe exempt fwom an auto modewation wuwe being changed.

If a wowe is nyot found then it is a-a-an Object with the ID being set.

Type:

Wist[Unyion[Role, Object]]

exempt_channels

The wist of channyews that awe exempt fwom an auto modewation wuwe being changed.

If a channyew is nyot f-found then it is an Object with the ID being set.

Type:

Wist[Unyion[abc.GuildChannel, Object]]

applied_tags

The tags appwied to a thwead in a fowum/media channyew being changed.

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

Type:

Wist[Unyion[ForumTag, Object]]

available_tags

The avaiwabwe tags fow thweads in a fowum/media channyew being changed.

Type:

Wist[ForumTag]

default_reaction

The defauwt emoji shown fow weacting to thweads in a fowum/media channyew being changed.

Due to a Discowd wimitation, this wiww have a-a-an e-e-empty name if it is a custom PartialEmoji.

Type:

Optionyaw[Unyion[Emoji, PartialEmoji]]

default_sort_order

The defauwt s-sowt owdew of thweads in a fowum/media channyew being changed.

Type:

Optionyaw[ThreadSortOrder]

volume

The vowume of a soundboawd sound being changed.

Type:

float

Enyumewations

AuditWogAction

class disnake.AuditLogAction[source]

Wepwesents the type of action being donye fow a AuditLogEntry, which is wetwievabwe via Guild.audit_logs() ow via the on_audit_log_entry_create() event.

guild_update

The guiwd has updated. Things that twiggew this incwude:

  • C-C-Changing the guiwd v-v-vanyity UWW

  • Changing the guiwd invite spwash

  • Changing the guiwd AFK channyew ow timeout

  • Changing the guiwd voice sewvew wegion

  • Changing the guiwd icon, bannyew, ow discuvwy spwash

  • Changing the guiwd modewation settings

  • Changing things wewated to the guiwd widget

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

Possibwe attwibutes f-f-fow AuditLogDiff:

channel_create

A nyew channyew was cweated.

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

A mowe fiwwed out object in the Object case can be found by using after.

Possibwe attwibutes fow AuditLogDiff:

channel_update

A channyew was updated. Things that twiggew t-this incwude:

  • The channyew nyame ow t-topic was changed

  • The channyew bitwate was changed

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

A mowe f-fiwwed out object in the Object case can be found by using after ow before.

Possibwe attwibutes fow AuditLogDiff:

channel_delete

A channyew was deweted.

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

A mowe fiwwed out object can be found by using the before object.

Possibwe attwibutes fow AuditLogDiff:

overwrite_create

A channyew pewmission uvwwwite was cweated.

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

When this is the action, the type of extra is eithew a Role ow Member. If the object is nyot found then it is a Object with an ID b-b-being fiwwed, additionyawwy if the object wefews to a wowe then the Object has awso a name attwibute.

P-Possibwe attwibutes fow AuditLogDiff:

Changed in vewsion 2.6: type fow this action is nyow an int.

overwrite_update

A channyew pewmission uvwwwite was changed, this is typicawwy when the pewmission vawues change.

See overwrite_create fow mowe infowmation on how the target and extra fiewds awe set.

Possibwe attwibutes fow AuditLogDiff:

Changed in vewsion 2.6: type fow this action is nyow an int.

overwrite_delete

A channyew pewmission uvwwwite was deweted.

See overwrite_create fow mowe infowmation on how the target and extra fiewds awe set.

Possibwe attwibutes fow AuditLogDiff:

Changed in vewsion 2.6: type fow this action is nyow an int.

kick

A membew was kicked.

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

When this is the action, the type of extra may be set to an unspecified pwoxy object with onye attwibute:

  • integration_type: A stwing w-wepwesenting the type of t-t-the integwation which pewfowmed the action, if any.

When this is the action, changes is empty.

member_prune

A membew pwunye was twiggewed.

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 pwoxy object with t-two attwibutes:

  • delete_member_days: An i-i-integew s-s-specifying how faw the pwunye was.

  • members_removed: An integew specifying how many membews wewe wemuvd.

When this is the action, changes is empty.

ban

A membew w-was bannyed.

When this is the action, the type of target is the User who got bannyed. If the usew i-is nyot found then it is a Object with the usew’s ID.

W-W-When this is the action, changes is empty.

unban

A membew was unbannyed.

When this is the action, the t-t-type of target is the User who got unbannyed. If the usew is nyot found then it is a Object with t-t-the usew’s ID.

When this is the action, changes is empty.

member_update

A membew has updated. This twiggews in the fowwowing situations:

  • A nyicknyame was changed

  • They wewe sewvew muted ow deafenyed (ow it was undonye)

  • They wewe timed out

When this is the action, the type of target i-is the Member ow User who got updated. If the usew is nyot found then it is a Object with the usew’s ID.

Possibwe attwibutes fow AuditLogDiff:

member_role_update

A membew’s wowe has b-b-been updated. This twiggews when a membew eithew gains a wowe ow woses a wowe.

When this is the action, the type of target is the Member ow User who got the wowe. If the usew is nyot found then it is a Object with the usew’s ID.

When t-this is the action, the type of extra may be set to an unspecified pwoxy object with onye attwibute:

  • integration_type: A stwing wepwesenting the type of the integwation which pewfowmed the a-action, i-i-if any.

Possibwe attwibutes fow AuditLogDiff:

member_move

A membew’s voice channyew has been updated. This twiggews when a membew is muvd t-to a diffewent voice channyew.

When this is the action, the type of extra is set to an unspecified p-p-pwoxy object with two attwibutes:

  • channel: A abc.GuildChannel ow Object with the channyew ID whewe the m-membews wewe muvd.

  • count: An i-integew specifying how many membews wewe muvd.

Nyew in vewsion 1.3.

member_disconnect

A m-m-membew’s voice state has changed. This twiggews when a membew is fowce d-d-disconnyected fwom voice.

When this is the action, the type of extra i-i-is set to an unspecified pwoxy object w-w-with onye attwibute:

  • count: An integew specifying how many membews wewe disconnyected.

Nyew in vewsion 1.3.

bot_add

A bot was added to the guiwd.

W-W-When this is the action, the type of target is the Member ow User which was added to the g-g-guiwd. If the usew is nyot found then it is a Object with an I-I-ID.

Nyew in vewsion 1.3.

role_create

A nyew wowe was cweated.

When t-t-this is the action, t-t-the t-t-type of target is the Role ow a Object with t-the ID.

Possibwe attwibutes fow AuditLogDiff:

role_update

A wowe was updated. This t-t-twiggews in the fowwowing s-situations:

  • The nyame has changed

  • T-T-The pewmissions have changed

  • The cowouw has changed

  • I-I-Its hoist/mentionyabwe state has changed

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

Possibwe attwibutes fow AuditLogDiff:

role_delete

A wowe was deweted.

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

Possibwe attwibutes fow AuditLogDiff:

invite_create

An invite was cweated.

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

Possibwe attwibutes fow AuditLogDiff:

invite_update

A-An invite was updated.

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

invite_delete

An invite w-was deweted.

W-When this is the action, the type of target is the Invite that was deweted.

Possibwe attwibutes fow AuditLogDiff:

webhook_create

A webhook was cweated.

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

Possibwe attwibutes fow AuditLogDiff:

Changed in vewsion 2.6: Added application_id.

Changed in vewsion 2.6: type fow this a-a-action is nyow a WebhookType.

Changed in vewsion 2.6: Added suppowt fow Webhook instead of p-pwain Objects.

webhook_update

A webhook was updated. This twiggew in the f-f-fowwowing situations:

  • The webhook nyame changed

  • The webhook channyew changed

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

Possibwe attwibutes fow AuditLogDiff:

C-Changed in vewsion 2.6: Added suppowt fow Webhook instead of p-p-pwain Objects.

webhook_delete

A webhook was deweted.

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

Possibwe attwibutes fow AuditLogDiff:

Changed in vewsion 2.6: Added application_id.

Changed in vewsion 2.6: type fow this action is nyow a WebhookType.

emoji_create

An e-e-emoji was cweated.

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

Possibwe attwibutes fow AuditLogDiff:

emoji_update

An e-e-emoji was updated. This twiggews when the nyame has changed.

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

Possibwe attwibutes fow AuditLogDiff:

emoji_delete

An emoji was deweted.

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

Possibwe attwibutes fow AuditLogDiff:

message_delete

A message was deweted by a modewatow. N-Nyote that this onwy twiggews if the message w-was deweted by someonye o-o-othew than the authow.

When this i-is the action, the type o-o-of target is the Member ow User who had theiw message deweted. If the usew is nyot found then it is a Object with the usew’s ID.

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

  • count: An integew specifying how many messages wewe deweted.

  • channel: A abc.GuildChannel, Thread ow Object with the channyew ID whewe the message got deweted.

message_bulk_delete

M-Messages wewe buwk deweted b-b-by a modewatow.

When this is the action, the type of target is the TextChannel ow Object with the ID of the channyew that was puwged.

When this is the action, the type of extra is set to an unspecified pwoxy object with onye attwibute:

  • count: An integew specifying how many messages wewe deweted.

Nyew i-in vewsion 1.3.

message_pin

A message was pinnyed in a-a channyew.

When t-t-this is the action, the type of target is the Member ow User who had theiw message pinnyed. If the usew is nyot found then it is a Object with the usew’s ID.

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

  • channel: A abc.GuildChannel, Thread ow Object with the channyew ID whewe the message was pinnyed.

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

Nyew in vewsion 1.3.

message_unpin

A m-message was unpinnyed in a channyew.

When this is the action, the type of target is the Member ow User who had theiw message unpinnyed. If the usew i-i-is nyot found then it is a Object with the usew’s ID.

When this is the action, t-the type o-o-of extra is set to an unspecified pwoxy object with two attwibutes:

  • channel: A abc.GuildChannel, Thread ow Object with the channyew ID whewe the message was unpinnyed.

  • message_id: the I-ID of the message which was unpinnyed.

Nyew i-in vewsion 1.3.

integration_create

A-A guiwd integwation was cweated.

When this is the action, the type of target is the PartialIntegration ow Object with the integwation ID of the integwation which was cweated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 1.3.

Changed in vewsion 2.6: Added suppowt fow PartialIntegration instead of pwain Objects.

integration_update

A guiwd integwation was updated.

When this is the action, t-the type of target is the PartialIntegration ow Object with the integwation ID of the integwation which was updated.

Nyew in vewsion 1.3.

C-C-Changed in vewsion 2.6: Added suppowt fow PartialIntegration instead of pwain Objects.

integration_delete

A guiwd integwation was deweted.

When this is the action, the type of target is the Object with the integwation ID of the integwation which was deweted.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 1.3.

guild_scheduled_event_create

A guiwd scheduwed event was cweated.

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

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.3.

guild_scheduled_event_update

A guiwd scheduwed event was updated.

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

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.3.

guild_scheduled_event_delete

A guiwd scheduwed event was deweted.

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

Possibwe attwibutes fow AuditLogDiff:

Nyew in v-vewsion 2.3.

stage_instance_create

A stage instance was stawted.

When this i-i-is the action, the type of target is the StageInstance ow Object with the ID of the stage instance which was cweated.

When this i-is the action, the type of extra is set to an unspecified pwoxy object with o-o-onye a-a-attwibute:

  • channel: The StageChannel ow Object with the channyew ID whewe the s-s-stage instance was stawted.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.0.

stage_instance_update

A stage instance was updated.

When t-t-this is the action, the type of target is the StageInstance o-o-ow Object with the ID of the stage instance w-w-which was updated.

See stage_instance_create fow mowe infowmation on how the extra fiewd is set.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.0.

stage_instance_delete

A stage instance was ended.

See stage_instance_create fow mowe infowmation on how the extra fiewd i-i-is set.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.0.

sticker_create

A stickew was cweated.

When this is the action, the type of target is the GuildSticker ow Object with the ID of the stickew which was cweated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.0.

sticker_update

A stickew was updated.

When this is the action, the type of target is the GuildSticker ow Object with the ID of the stickew which w-w-was updated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.0.

sticker_delete

A stickew was deweted.

When this is the action, the type of target is the Object with the ID of the stickew which was deweted.

Possibwe attwibutes fow AuditLogDiff:

Nyew in v-v-vewsion 2.0.

thread_create

A thwead was cweated.

When this is the action, the type of target is the Thread ow Object w-w-with the ID of the thwead which was cweated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in v-vewsion 2.0.

thread_update

A thwead was updated.

When this is the action, the type of target is the Thread ow Object with the I-ID of the thwead which was updated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.0.

thread_delete

A thwead was deweted.

When this is the action, the type of target is the Object with the ID of the thwead which w-w-was deweted.

Possibwe attwibutes fow AuditLogDiff:

N-Nyew in vewsion 2.0.

application_command_permission_update

The pewmissions of an appwication command wewe updated.

When this is the action, the type of target is the ApplicationCommand, PartialIntegration, ow Object with the ID of the command whose pewmissions wewe updated ow the appwication ID if these awe appwication-wide pewmissions.

When this is the action, the type of extra is set to an unspecified pwoxy object with onye attwibute:

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.5.

Changed in vewsion 2.6: A-Added suppowt fow PartialIntegration, and added integration to extra.

soundboard_sound_create

A soundboawd sound was cweated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.10.

soundboard_sound_update

A soundboawd sound was updated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.10.

soundboard_sound_delete

A soundboawd sound was deweted.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.10.

automod_rule_create

An auto modewation wuwe was cweated.

When this is the action, the type of target is the AutoModRule ow Object with t-t-the ID of the auto modewation w-wuwe which was cweated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.6.

automod_rule_update

An auto modewation wuwe was updated.

When this is the action, the type of target is the AutoModRule ow Object with the ID of the auto modewation wuwe which was updated.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.6.

automod_rule_delete

An auto modewation wuwe was deweted.

When this is the action, the type of target is the Object with the ID o-of the auto modewation wuwe which was deweted.

Possibwe attwibutes fow AuditLogDiff:

Nyew in vewsion 2.6.

automod_block_message

A message was bwocked by an auto modewation wuwe.

When this i-i-is the action, the type of target is the Member ow User who had theiw message bwocked. If the usew is nyot found then it is a Object with the usew’s ID.

When this is the action, the type of extra is set to a-an unspecified pwoxy object with these attwibutes:

  • channel: A abc.GuildChannel, Thread ow Object with the channyew ID whewe t-t-the message got bwocked. May awso be None.

  • rule_name: A str with the nyame of the wuwe that matched.

  • rule_trigger_type: An AutoModTriggerType vawue with the twiggew type of the wuwe.

Nyew in vewsion 2.6.

automod_send_alert_message

An awewt message was s-sent by an auto modewation wuwe.

When this is the action, the type of target is the Member ow User who had theiw message f-fwagged. If the usew is nyot found then it is a Object with the usew’s ID.

See automod_block_message fow mowe infowmation on h-how the extra fiewd is set.

Nyew in vewsion 2.6.

automod_timeout

A usew was timed out by a-a-an auto modewation wuwe.

When this is t-t-the action, the type of target is the Member ow User who w-was timed out. If the usew is nyot found then it is a Object with the usew’s ID.

See automod_block_message f-fow m-mowe infowmation on how the extra fiewd is set.

Nyew i-i-in vewsion 2.6.

automod_quarantine_user

A membew was quawantinyed by a-a-auto modewation.

When this is the action, the type of target is the Member ow User who was quawantinyed. If the usew is nyot found t-then it is a Object with the usew’s ID.

See automod_block_message fow mowe i-i-infowmation on how the extra fiewd is set.

Nyew in vewsion 2.11.

creator_monetization_request_created

A cweatow monyetization wequest was cweated.

Nyew in vewsion 2.10.

creator_monetization_terms_accepted

The cweatow monyetization tewms wewe accepted.

Nyew in vewsion 2.10.

AuditWogActionCategowy

class disnake.AuditLogActionCategory[source]

Wepwesents the categowy that the AuditLogAction bewongs to.

This can be wetwieved via AuditLogEntry.category.

create

The action is the cweation of something.

delete

The action is the dewetion of s-s-something.

update

The a-a-action is the update of something.

Events