From 40986f9279c6e5e381ae3b5f73b3dcf7bd397253 Mon Sep 17 00:00:00 2001 From: James Hilton-Balfe <gobot1234yt@gmail.com> Date: Tue, 9 Aug 2022 00:58:48 +0100 Subject: [PATCH] Fix overlapping or incorrect slots found by slotscheck --- discord/activity.py | 1 - discord/asset.py | 1 + discord/message.py | 2 -- discord/widget.py | 4 ---- 4 files changed, 1 insertion(+), 7 deletions(-) diff --git a/discord/activity.py b/discord/activity.py index 662f592c0..5e9730065 100644 --- a/discord/activity.py +++ b/discord/activity.py @@ -196,7 +196,6 @@ class Activity(BaseActivity): __slots__ = ( 'state', 'details', - '_created_at', 'timestamps', 'assets', 'party', diff --git a/discord/asset.py b/discord/asset.py index 9d2db14c7..d88ebb945 100644 --- a/discord/asset.py +++ b/discord/asset.py @@ -58,6 +58,7 @@ MISSING = utils.MISSING class AssetMixin: + __slots__ = () url: str _state: Optional[Any] diff --git a/discord/message.py b/discord/message.py index f4adf8add..2c0d517ec 100644 --- a/discord/message.py +++ b/discord/message.py @@ -1405,7 +1405,6 @@ class Message(PartialMessage, Hashable): """ __slots__ = ( - '_state', '_edited_timestamp', '_cs_channel_mentions', '_cs_raw_mentions', @@ -1415,7 +1414,6 @@ class Message(PartialMessage, Hashable): '_cs_system_content', 'tts', 'content', - 'channel', 'webhook_id', 'mention_everyone', 'embeds', diff --git a/discord/widget.py b/discord/widget.py index 402cdab82..fe50eb046 100644 --- a/discord/widget.py +++ b/discord/widget.py @@ -152,13 +152,9 @@ class WidgetMember(BaseUser): """ __slots__ = ( - 'name', 'status', 'nick', 'avatar', - 'discriminator', - 'id', - 'bot', 'activity', 'deafened', 'suppress',