|
|
@ -117,11 +117,12 @@ class Interaction: |
|
|
|
self.user = None |
|
|
|
|
|
|
|
# TODO: there's a potential data loss here |
|
|
|
guild = self.guild or Object(id=self.guild_id) |
|
|
|
try: |
|
|
|
self.user = Member(state=self._state, guild=guild, data=data['member']) |
|
|
|
except KeyError: |
|
|
|
pass |
|
|
|
if self.guild_id: |
|
|
|
guild = self.guild or Object(id=self.guild_id) |
|
|
|
try: |
|
|
|
self.user = Member(state=self._state, guild=guild, data=data['member']) |
|
|
|
except KeyError: |
|
|
|
pass |
|
|
|
|
|
|
|
@property |
|
|
|
def guild(self) -> Optional[Guild]: |
|
|
|