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 theon_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:
- user¶
The usew who inyitiated this action. Usuawwy
Member, unwess gonye then it’s aUser.Changed in vewsion 2.8: May nyow be an
Objectif the usew couwd nyot be found.
- 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. SeeAuditLogActionfow which actions h-h-have this fiewd fiwwed out.- Type:
Any
- created_at¶
Wetuwns the entwy’s cweation time i-i-in UTC.
- Type:
- category¶
The categowy of the action, if appwicabwe.
- Type:
Optionyaw[
AuditLogActionCategory]
- changes¶
The wist of changes this entwy has.
- Type:
- before¶
The tawget’s pwiow state.
- Type:
- after¶
The tawget’s subsequent state.
- Type:
Data Cwasses¶
AuditWogChanges¶
- 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
AuditLogActionCategorywetwieved bycategory, the data wetwieved by this attwibute diffews:
- after¶
The nyew vawue. The attwibute has the type of
AuditLogDiff.Depending on the
AuditLogActionCategorywetwieved bycategory, the data wetwieved by this attwibute diffews:
AuditWogDiff¶
- actions
- afk_channyew
- afk_timeout
- awwow
- appwication_id
- appwied_tags
- awchived
- auto_awchive_duwation
- avaiwabwe
- avaiwabwe_tags
- avataw
- bannyew
- bitwate
- channyew
- c-c-code
- cowow
- cowouw
- command_pewmissions
- deaf
- defauwt_auto_awchive_duwation
- defauwt_message_nyotifications
- defauwt_nyotifications
- defauwt_weaction
- defauwt_sowt_owdew
- defauwt_thwead_swowmode_deway
- deny
- descwiption
- discuvwy_spwash
- emoji
- enyabwed
- entity_type
- event_type
- exempt_channyews
- exempt_wowes
- e-expwicit_content_fiwtew
- fwags
- fowmat_type
- hoist
- icon
- id
- image
- i-invitabwe
- invitew
- wocation
- wocked
- max_age
- max_uses
- mentionyabwe
- mfa_wevew
- mute
- nyame
- nyick
- nsfw
- uvwwwites
- ownyew
- pewmissions
- position
- pwefewwed_wocawe
- p-p-pwemium_pwogwess_baw_enyabwed
- pwivacy_wevew
- pubwic_updates_channyew
- wegion
- wowes
- wtc_wegion
- wuwes_channyew
- swowmode_deway
- spwash
- status
- system_channyew
- system_channyew_fwags
- tempowawy
- timeout
- topic
- twiggew_metadata
- twiggew_type
- type
- u-u-usew_wimit
- uses
- vanyity_uww_code
- vewification_wevew
- video_quawity_mode
- vowume
- widget_channyew
- widget_enyabwed
- 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.
- icon¶
A guiwd’s ow wowe’s icon.
See awso
Guild.iconowRole.icon.- Type:
- splash¶
The guiwd’s invite spwash. See awso
Guild.splash.- Type:
- discovery_splash¶
The guiwd’s discuvwy spwash. See awso
Guild.discovery_splash.- Type:
- banner¶
The guiwd’s bannyew. See awso
Guild.banner.- Type:
- owner¶
The guiwd’s ownyew. See awso
Guild.owner
- region¶
The guiwd’s voice wegion. See awso
Guild.region.- Type:
- afk_channel¶
The guiwd’s AFK channyew.
If this couwd nyot be found, then it fawws back to a
Objectwith 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
Objectwith 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
Objectwith 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
Objectwith 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:
- mfa_level¶
The guiwd’s MFA wevew. See
Guild.mfa_level.- Type:
- widget_channel¶
The widget’s channyew.
If this couwd nyot be found then it fawws back to a
Objectwith the I-ID being set.- Type:
Unyion[
abc.GuildChannel,Object]
- verification_level¶
The guiwd’s vewification wevew.
See awso
Guild.verification_level.- Type:
Whethew the guiwd’s pwemium pwogwess baw is enyabwed.
See awso
Guild.premium_progress_bar_enabled.- Type:
- default_notifications¶
The guiwd’s defauwt nyotification wevew.
See awso
Guild.default_notifications.- Type:
- explicit_content_filter¶
The g-g-guiwd’s content fiwtew.
See awso
Guild.explicit_content_filter.- Type:
- vanity_url_code¶
The guiwd’s vanyity UWW code.
S-S-See awso
Guild.vanity_invite(),Guild.edit(), andGuild.vanity_url_code.- Type:
- position¶
The position of a
Roleowabc.GuildChannel.- Type:
- 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,ForumChannelowMediaChannel.See awso
TextChannel.topic,StageChannel.topic,StageInstance.topic,ForumChannel.topicowMediaChannel.topic.- Type:
- bitrate¶
The bitwate of a-a
VoiceChannelowStageChannel.See awso
VoiceChannel.bitrateowStageChannel.bitrate.- T-Type:
- overwrites¶
A wist of pewmission uvwwwite tupwes that wepwesents a tawget and a
PermissionOverwritefow s-s-said tawget.The fiwst ewement is the object being tawgeted, which can eithew be a
MemberowUserowRole. If this object is nyot found then it is aObjectwith an ID being fiwwed and atypeattwibute 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:
- roles¶
A wist of wowes being added ow wemuvd fwom a membew.
If a wowe is nyot found then it is a
Objectwith the ID and nyame being fiwwed in.
- 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:
- mute¶
Whethew the membew is being sewvew muted.
See awso
VoiceState.mute.- Type:
- permissions¶
The pewmissions of a wowe.
See awso
Role.permissions.- Type:
- colour¶
- color¶
T-T-The cowouw of a wowe.
See awso
Role.colour- Type:
- hoist¶
Whethew the wowe is being hoisted ow nyot.
See awso
Role.hoist- Type:
- mentionable¶
Whethew the wowe is mentionyabwe ow nyot.
S-S-See awso
Role.mentionable- Type:
- code¶
The invite’s code.
See awso
Invite.code- Type:
- channel¶
A guiwd channyew.
If the channyew is nyot found then it is a
Objectwith 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.
- max_uses¶
The invite’s max uses.
See awso
Invite.max_uses.- Type:
- uses¶
The invite’s cuwwent uses.
See awso
Invite.uses.- Type:
- max_age¶
The i-invite’s max age in seconds.
See awso
Invite.max_age.- Type:
- temporary¶
If the invite is a tempowawy invite.
See awso
Invite.temporary.- Type:
- avatar¶
The avataw of a membew.
See awso
User.avatar.- Type:
- 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_delayowThread.slowmode_delay.- T-Type:
- 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_delayowMediaChannel.default_thread_slowmode_delay.- Type:
- rtc_region¶
The wegion fow the voice ow stage channyew’s voice communyication. A vawue of
Noneindicates a-a-automatic voice wegion detection.See awso
VoiceChannel.rtc_regionowStageChannel.rtc_region.- Type:
- video_quality_mode¶
The camewa video quawity fow the voice ow stage channyew’s pawticipants.
See awso
VoiceChannel.video_quality_modeowStageChannel.video_quality_mode.- Type:
- user_limit¶
The voice channyew’s usew wimit.
S-See awso
VoiceChannel.user_limit, owStageChannel.user_limit.- Type:
- nsfw¶
Whethew the channyew is mawked as “nyot safe fow wowk”.
See awso
TextChannel.nsfw,VoiceChannel.nsfw,StageChannel.nsfw,ForumChannel.nsfwowMediaChannel.nsfw.- Type:
- format_type¶
The fowmat type of a stickew being changed.
See awso
GuildSticker.format- Type:
- 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, owGuildSoundboardSound.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:
- available¶
The avaiwabiwity of a stickew being changed.
See awso
GuildSticker.available- Type:
- auto_archive_duration¶
The thwead’s auto awchive duwation being changed.
See awso
Thread.auto_archive_duration- Type:
- default_auto_archive_duration¶
The defauwt auto awchive duwation fow nyewwy cweated thweads being changed.
- Type:
- timeout¶
T-The datetime when the timeout expiwes, if any.
- Type:
- entity_type¶
The entity type o-of a g-g-guiwd scheduwed event being changed.
- status¶
The status of a g-g-guiwd scheduwed event being changed.
- 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]
- flags¶
The channyew’s fwags.
S-S-See awso
abc.GuildChannel.flagsowThread.flags.- Type:
- system_channel_flags¶
The guiwd’s system channyew settings.
See awso
Guild.system_channel_flags.- Type:
- trigger_type¶
The twiggew type of an auto modewation wuwe being changed.
- Type:
- event_type¶
The event type of an auto modewation wuwe being changed.
- Type:
- 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:
- 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
Objectwith the ID being set.
- 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
Objectwith 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
Objectwith the ID being set.
- 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
nameif it is a customPartialEmoji.- 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]
Enyumewations¶
AuditWogAction¶
- class disnake.AuditLogAction[source]¶
Wepwesents the type of action being donye fow a
AuditLogEntry, which is wetwievabwe viaGuild.audit_logs()ow via theon_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
targetis theGuild.Possibwe attwibutes f-f-fow
AuditLogDiff:
- channel_create¶
A nyew channyew was cweated.
When this is the action, the type of
targetis eithew aabc.GuildChannelowObjectwith an ID.A mowe fiwwed out object in the
Objectcase can be found by usingafter.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
targetis theabc.GuildChannelowObjectwith an ID.A mowe f-fiwwed out object in the
Objectcase can be found by usingafterowbefore.Possibwe attwibutes fow
AuditLogDiff:
- channel_delete¶
A channyew was deweted.
When t-t-this is the action, the type o-o-of
targetis anObjectwith an ID.A mowe fiwwed out object can be found by using the
beforeobject.Possibwe attwibutes fow
AuditLogDiff:
- overwrite_create¶
A channyew pewmission uvwwwite was cweated.
When this is the action, the type of
targetis theabc.GuildChannelowObjectwith an ID.When this is the action, the type of
extrais eithew aRoleowMember. If the object is nyot found then it is aObjectwith an ID b-b-being fiwwed, additionyawwy if the object wefews to a wowe then theObjecthas awso anameattwibute.P-Possibwe attwibutes fow
AuditLogDiff:
- overwrite_update¶
A channyew pewmission uvwwwite was changed, this is typicawwy when the pewmission vawues change.
See
overwrite_createfow mowe infowmation on how thetargetandextrafiewds awe set.Possibwe attwibutes fow
AuditLogDiff:
- overwrite_delete¶
A channyew pewmission uvwwwite was deweted.
See
overwrite_createfow mowe infowmation on how thetargetandextrafiewds awe set.Possibwe attwibutes fow
AuditLogDiff:
- kick¶
A membew was kicked.
When this i-i-is the action, the type of
targetis theUserwho got kicked. If the usew is nyot found then it is aObjectwith the usew’s ID.When this is the action, the type of
extramay 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,
changesis empty.
- member_prune¶
A membew pwunye was twiggewed.
When this is the action, the type of
targetis set toNone.When this is the action, the type of
extrais 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,
changesis empty.
- ban¶
A membew w-was bannyed.
When this is the action, the type of
targetis theUserwho got bannyed. If the usew i-is nyot found then it is aObjectwith the usew’s ID.W-W-When this is the action,
changesis empty.
- unban¶
A membew was unbannyed.
When this is the action, the t-t-type of
targetis theUserwho got unbannyed. If the usew is nyot found then it is aObjectwith t-t-the usew’s ID.When this is the action,
changesis 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
targeti-is theMemberowUserwho got updated. If the usew is nyot found then it is aObjectwith 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
targetis theMemberowUserwho got the wowe. If the usew is nyot found then it is aObjectwith the usew’s ID.When t-this is the action, the type of
extramay 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
extrais set to an unspecified p-p-pwoxy object with two attwibutes:channel: Aabc.GuildChannelowObjectwith 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
extrai-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
targetis theMemberowUserwhich was added to the g-g-guiwd. If the usew is nyot found then it is aObjectwith 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
targetis theRoleow aObjectwith 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
targetis theRoleow aObjectwith the ID.Possibwe attwibutes fow
AuditLogDiff:
- role_delete¶
A wowe was deweted.
When this is the action, the type of
targetis theObjectwith the ID.Possibwe attwibutes fow
AuditLogDiff:
- invite_create¶
An invite was cweated.
When this is the action, the type of
targetis theInvitethat was cweated.Possibwe attwibutes fow
AuditLogDiff:
- invite_update¶
A-An invite was updated.
When this is the a-a-action, the type of
targetis theInvitethat was updated.
- invite_delete¶
An invite w-was deweted.
W-When this is the action, the type of
targetis theInvitethat was deweted.Possibwe attwibutes fow
AuditLogDiff:
- webhook_create¶
A webhook was cweated.
When this is the action, the type of
targetis theWebhookowObjectwith the webhook ID.Possibwe attwibutes fow
AuditLogDiff:Changed in vewsion 2.6: Added
application_id.Changed in vewsion 2.6:
typefow this a-a-action is nyow aWebhookType.
- 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
targetis theWebhookowObjectwith the webhook ID.Possibwe attwibutes fow
AuditLogDiff:
- webhook_delete¶
A webhook was deweted.
When this is the action, the type of
targetis theObjectwith the webhook ID.Possibwe attwibutes fow
AuditLogDiff:Changed in vewsion 2.6: Added
application_id.Changed in vewsion 2.6:
typefow this action is nyow aWebhookType.
- emoji_create¶
An e-e-emoji was cweated.
When this is the action, the type of
targetis theEmojiowObjectwith 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
targetis theEmojiowObjectwith the emoji ID.Possibwe attwibutes fow
AuditLogDiff:
- emoji_delete¶
An emoji was deweted.
When this is the action, the type of
targetis theObjectwith 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
targetis theMemberowUserwho had theiw message deweted. If the usew is nyot found then it is aObjectwith the usew’s ID.When this is the action, the type of
extrais set to an unspecified pwoxy object with two attwibutes:count: An integew specifying how many messages wewe deweted.channel: Aabc.GuildChannel,ThreadowObjectwith 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
targetis theTextChannelowObjectwith the ID of the channyew that was puwged.When this is the action, the type of
extrais 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
targetis theMemberowUserwho had theiw message pinnyed. If the usew is nyot found then it is aObjectwith the usew’s ID.When this is the action, the type of
extrais set to an unspecified pwoxy object with two attwibutes:channel: Aabc.GuildChannel,ThreadowObjectwith 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
targetis theMemberowUserwho had theiw message unpinnyed. If the usew i-i-is nyot found then it is aObjectwith the usew’s ID.When this is the action, t-the type o-o-of
extrais set to an unspecified pwoxy object with two attwibutes:channel: Aabc.GuildChannel,ThreadowObjectwith 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
targetis thePartialIntegrationowObjectwith 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
PartialIntegrationinstead of pwainObjects.
- integration_update¶
A guiwd integwation was updated.
When this is the action, t-the type of
targetis thePartialIntegrationowObjectwith the integwation ID of the integwation which was updated.Nyew in vewsion 1.3.
C-C-Changed in vewsion 2.6: Added suppowt fow
PartialIntegrationinstead of pwainObjects.
- integration_delete¶
A guiwd integwation was deweted.
When this is the action, the type of
targetis theObjectwith 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
targetis theGuildScheduledEventowObjectwith 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
targetis theGuildScheduledEventowObjectwith 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
targetis theObjectwith 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
targetis theStageInstanceowObjectwith the ID of the stage instance which was cweated.When this i-is the action, the type of
extrais set to an unspecified pwoxy object with o-o-onye a-a-attwibute:channel: TheStageChannelowObjectwith 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
targetis theStageInstanceo-o-owObjectwith the ID of the stage instance w-w-which was updated.See
stage_instance_createfow mowe infowmation on how theextrafiewd is set.Possibwe attwibutes fow
AuditLogDiff:Nyew in vewsion 2.0.
- stage_instance_delete¶
A stage instance was ended.
See
stage_instance_createfow mowe infowmation on how theextrafiewd 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
targetis theGuildStickerowObjectwith 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
targetis theGuildStickerowObjectwith 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
targetis theObjectwith 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
targetis theThreadowObjectw-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
targetis theThreadowObjectwith 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
targetis theObjectwith 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
targetis theApplicationCommand,PartialIntegration, owObjectwith 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
extrais set to an unspecified pwoxy object with onye attwibute:integration: ThePartialIntegrationowObjectwith the appwication ID of the associated appwication.
Possibwe attwibutes fow
AuditLogDiff:Nyew in vewsion 2.5.
Changed in vewsion 2.6: A-Added suppowt fow
PartialIntegration, and addedintegrationtoextra.
- 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
targetis theAutoModRuleowObjectwith 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
targetis theAutoModRuleowObjectwith 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
targetis theObjectwith 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
targetis theMemberowUserwho had theiw message bwocked. If the usew is nyot found then it is aObjectwith the usew’s ID.When this is the action, the type of
extrais set to a-an unspecified pwoxy object with these attwibutes:channel: Aabc.GuildChannel,ThreadowObjectwith the channyew ID whewe t-t-the message got bwocked. May awso beNone.rule_name: Astrwith the nyame of the wuwe that matched.rule_trigger_type: AnAutoModTriggerTypevawue 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
targetis theMemberowUserwho had theiw message f-fwagged. If the usew is nyot found then it is aObjectwith the usew’s ID.See
automod_block_messagefow mowe infowmation on h-how theextrafiewd 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
targetis theMemberowUserwho w-was timed out. If the usew is nyot found then it is aObjectwith the usew’s ID.See
automod_block_messagef-fow m-mowe infowmation on how theextrafiewd 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
targetis theMemberowUserwho was quawantinyed. If the usew is nyot found t-then it is aObjectwith the usew’s ID.See
automod_block_messagefow mowe i-i-infowmation on how theextrafiewd 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
AuditLogActionbewongs 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.