From 46815887d2f0e2fcaccb065197597f48d2cc80fa Mon Sep 17 00:00:00 2001 From: Damego Date: Sat, 14 Jan 2023 16:57:32 +0500 Subject: [PATCH 1/2] docs: add missed fields for the `GuildAuditLogEntry` --- interactions/api/models/gw.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/interactions/api/models/gw.py b/interactions/api/models/gw.py index 424f8cb4b..b5f03d720 100644 --- a/interactions/api/models/gw.py +++ b/interactions/api/models/gw.py @@ -214,9 +214,16 @@ class GuildAuditLogEntry(AuditLogEntry): .. versionadded:: 4.4.0 A class object representing the event ``GUILD_AUDIT_LOG_ENTRY_CREATE``. - A derivation of AuditLogEntry. + A derivation of :class:`.AuditLogEntry`. :ivar Snowflake guild_id: The guild ID of event. + :ivar Optional[str] target_id: ID of the affected entity (webhook, user, role, etc.) + :ivar Optional[List[AuditLogChange]] changes: Changes made to the target_id + :ivar Optional[Snowflake] user_id: User or app that made the changes + :ivar Snowflake id: ID of the entry + :ivar AuditLogEvents action_type: Type of action that occurred + :ivar OptionalAuditEntryInfo options: Additional info for certain event types + :ivar str reason: Reason for the change (1-512 characters) """ guild_id: Snowflake = field(converter=Snowflake) From da4f52537a3a1949ea03ac38996af0df9f2d9d41 Mon Sep 17 00:00:00 2001 From: Damego Date: Sat, 14 Jan 2023 17:02:52 +0500 Subject: [PATCH 2/2] docs: Ed, are you kidding me? --- interactions/api/models/audit_log.py | 4 ++-- interactions/api/models/gw.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interactions/api/models/audit_log.py b/interactions/api/models/audit_log.py index 7bf6f9134..bfc5130b9 100644 --- a/interactions/api/models/audit_log.py +++ b/interactions/api/models/audit_log.py @@ -234,8 +234,8 @@ class AuditLogEntry(DictSerializerMixin): :ivar Optional[Snowflake] user_id: User or app that made the changes :ivar Snowflake id: ID of the entry :ivar AuditLogEvents action_type: Type of action that occurred - :ivar OptionalAuditEntryInfo options: Additional info for certain event types - :ivar str reason: Reason for the change (1-512 characters) + :ivar Optional[AuditEntryInfo] options: Additional info for certain event types + :ivar Optional[str] reason: Reason for the change (1-512 characters) """ target_id: Optional[str] = field(default=None) diff --git a/interactions/api/models/gw.py b/interactions/api/models/gw.py index b5f03d720..794858431 100644 --- a/interactions/api/models/gw.py +++ b/interactions/api/models/gw.py @@ -222,8 +222,8 @@ class GuildAuditLogEntry(AuditLogEntry): :ivar Optional[Snowflake] user_id: User or app that made the changes :ivar Snowflake id: ID of the entry :ivar AuditLogEvents action_type: Type of action that occurred - :ivar OptionalAuditEntryInfo options: Additional info for certain event types - :ivar str reason: Reason for the change (1-512 characters) + :ivar Optional[AuditEntryInfo] options: Additional info for certain event types + :ivar Optional[str] reason: Reason for the change (1-512 characters) """ guild_id: Snowflake = field(converter=Snowflake)