Skip to content

Commit a6f832d

Browse files
authored
docs: add missed fields for the GuildAuditLogEntry (#1222)
* docs: add missed fields for the `GuildAuditLogEntry` * docs: Ed, are you kidding me?
1 parent 9270d3c commit a6f832d

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

interactions/api/models/audit_log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ class AuditLogEntry(DictSerializerMixin):
234234
:ivar Optional[Snowflake] user_id: User or app that made the changes
235235
:ivar Snowflake id: ID of the entry
236236
:ivar AuditLogEvents action_type: Type of action that occurred
237-
:ivar OptionalAuditEntryInfo options: Additional info for certain event types
238-
:ivar str reason: Reason for the change (1-512 characters)
237+
:ivar Optional[AuditEntryInfo] options: Additional info for certain event types
238+
:ivar Optional[str] reason: Reason for the change (1-512 characters)
239239
"""
240240

241241
target_id: Optional[str] = field(default=None)

interactions/api/models/gw.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,16 @@ class GuildAuditLogEntry(AuditLogEntry):
214214
.. versionadded:: 4.4.0
215215
216216
A class object representing the event ``GUILD_AUDIT_LOG_ENTRY_CREATE``.
217-
A derivation of AuditLogEntry.
217+
A derivation of :class:`.AuditLogEntry`.
218218
219219
:ivar Snowflake guild_id: The guild ID of event.
220+
:ivar Optional[str] target_id: ID of the affected entity (webhook, user, role, etc.)
221+
:ivar Optional[List[AuditLogChange]] changes: Changes made to the target_id
222+
:ivar Optional[Snowflake] user_id: User or app that made the changes
223+
:ivar Snowflake id: ID of the entry
224+
:ivar AuditLogEvents action_type: Type of action that occurred
225+
:ivar Optional[AuditEntryInfo] options: Additional info for certain event types
226+
:ivar Optional[str] reason: Reason for the change (1-512 characters)
220227
"""
221228

222229
guild_id: Snowflake = field(converter=Snowflake)

0 commit comments

Comments
 (0)