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__ = (
'state',
'details',
'_created_at',
'timestamps',
'assets',
'party',

1
discord/asset.py

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

2
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',

4
discord/widget.py

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

Loading…
Cancel
Save