mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Add missing __slots__ to MessageInteraction
This commit is contained in:
parent
26ac844a04
commit
7696342d76
@ -545,6 +545,8 @@ class MessageInteraction(Hashable):
|
||||
The user or member that invoked the interaction.
|
||||
"""
|
||||
|
||||
__slots__: Tuple[str, ...] = ('id', 'type', 'name', 'user')
|
||||
|
||||
def __init__(self, *, state: ConnectionState, guild: Optional[Guild], data: MessageInteractionPayload) -> None:
|
||||
self.id: int = int(data['id'])
|
||||
self.type: InteractionType = try_enum(InteractionType, data['type'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user