Browse Source

Fix overlapping or incorrect slots found by slotscheck

pull/8317/head
James Hilton-Balfe 3 years ago
committed by GitHub
parent
commit
40986f9279
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      discord/activity.py
  2. 1
      discord/asset.py
  3. 2
      discord/message.py
  4. 4
      discord/widget.py

1
discord/activity.py

@ -196,7 +196,6 @@ class Activity(BaseActivity):
__slots__ = ( __slots__ = (
'state', 'state',
'details', 'details',
'_created_at',
'timestamps', 'timestamps',
'assets', 'assets',
'party', 'party',

1
discord/asset.py

@ -58,6 +58,7 @@ MISSING = utils.MISSING
class AssetMixin: class AssetMixin:
__slots__ = ()
url: str url: str
_state: Optional[Any] _state: Optional[Any]

2
discord/message.py

@ -1405,7 +1405,6 @@ class Message(PartialMessage, Hashable):
""" """
__slots__ = ( __slots__ = (
'_state',
'_edited_timestamp', '_edited_timestamp',
'_cs_channel_mentions', '_cs_channel_mentions',
'_cs_raw_mentions', '_cs_raw_mentions',
@ -1415,7 +1414,6 @@ class Message(PartialMessage, Hashable):
'_cs_system_content', '_cs_system_content',
'tts', 'tts',
'content', 'content',
'channel',
'webhook_id', 'webhook_id',
'mention_everyone', 'mention_everyone',
'embeds', 'embeds',

4
discord/widget.py

@ -152,13 +152,9 @@ class WidgetMember(BaseUser):
""" """
__slots__ = ( __slots__ = (
'name',
'status', 'status',
'nick', 'nick',
'avatar', 'avatar',
'discriminator',
'id',
'bot',
'activity', 'activity',
'deafened', 'deafened',
'suppress', 'suppress',

Loading…
Cancel
Save