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 16e7aff commit 5d62aacCopy full SHA for 5d62aac
discord/commands/context.py
@@ -103,6 +103,10 @@ def message(self) -> Optional[Message]:
103
def user(self) -> Optional[Union[Member, User]]:
104
return self.interaction.user
105
106
+ @cached_property
107
+ def author(self) -> Optional[Union[Member, User]]:
108
+ return self.user
109
+
110
@property
111
def voice_client(self):
112
return self.guild.voice_client
@@ -111,8 +115,6 @@ def voice_client(self):
115
def response(self) -> InteractionResponse:
116
return self.interaction.response
113
117
114
- author = user
-
118
119
def respond(self):
120
return self.followup.send if self.response.is_done() else self.interaction.response.send_message
0 commit comments