We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3fc966 commit 65d6999Copy full SHA for 65d6999
interactions/api/events/base.py
@@ -27,6 +27,11 @@ class BaseEvent:
27
bot: "Client" = attrs.field(repr=False, kw_only=True, default=MISSING)
28
"""The client instance that dispatched this event."""
29
30
+ @property
31
+ def client(self) -> "Client":
32
+ """The client instance that dispatched this event."""
33
+ return self.bot
34
+
35
@property
36
def resolved_name(self) -> str:
37
"""The name of the event, defaults to the class name if not overridden."""
0 commit comments