Browse Source
Fix overlapping or incorrect slots found by slotscheck
pull/8317/head
James Hilton-Balfe
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
1 additions and
7 deletions
-
discord/activity.py
-
discord/asset.py
-
discord/message.py
-
discord/widget.py
|
|
@ -196,7 +196,6 @@ class Activity(BaseActivity): |
|
|
|
__slots__ = ( |
|
|
|
'state', |
|
|
|
'details', |
|
|
|
'_created_at', |
|
|
|
'timestamps', |
|
|
|
'assets', |
|
|
|
'party', |
|
|
|
|
|
@ -58,6 +58,7 @@ MISSING = utils.MISSING |
|
|
|
|
|
|
|
|
|
|
|
class AssetMixin: |
|
|
|
__slots__ = () |
|
|
|
url: str |
|
|
|
_state: Optional[Any] |
|
|
|
|
|
|
|
|
|
@ -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', |
|
|
|
|
|
@ -152,13 +152,9 @@ class WidgetMember(BaseUser): |
|
|
|
""" |
|
|
|
|
|
|
|
__slots__ = ( |
|
|
|
'name', |
|
|
|
'status', |
|
|
|
'nick', |
|
|
|
'avatar', |
|
|
|
'discriminator', |
|
|
|
'id', |
|
|
|
'bot', |
|
|
|
'activity', |
|
|
|
'deafened', |
|
|
|
'suppress', |
|
|
|