From 7696342d765427f2da28d01d034738a029c4583f Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 2 Apr 2022 01:24:49 -0400 Subject: [PATCH] Add missing __slots__ to MessageInteraction --- discord/message.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/discord/message.py b/discord/message.py index f1272b228..5e8081e3b 100644 --- a/discord/message.py +++ b/discord/message.py @@ -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'])