Skip to content

Commit 60edb6f

Browse files
authored
fix: attribute error for user in messageinteraction(#1459)
1 parent b23fe82 commit 60edb6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

interactions/models/discord/message.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,10 @@ def _process_dict(cls, data: Dict[str, Any], client: "Client") -> Dict[str, Any]
187187
data["user_id"] = client.cache.place_user_data(user_data).id
188188
return data
189189

190-
async def user(self) -> "models.User":
190+
@property
191+
def user(self) -> "models.User":
191192
"""Get the user associated with this interaction."""
192-
return await self.get_user(self._user_id)
193+
return self.client.get_user(self._user_id)
193194

194195

195196
@attrs.define(eq=False, order=False, hash=False, kw_only=False)

0 commit comments

Comments
 (0)