diff --git a/discord/guild.py b/discord/guild.py index fa7bde663865..973f13e428a0 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -537,8 +537,8 @@ def _from_data(self, guild: GuildPayload) -> None: empty_tuple = () for presence in guild.get('presences', []): - raw = RawPresenceUpdateEvent(data=presence, state=self._state) - member = self.get_member(raw.user_id) + user_id = int(presence['user']['id']) + member = self.get_member(user_id) if member is not None: member._perf_presence_update(presence, empty_tuple) # type: ignore