-
fix(core): Improve client ready state and user parsing
released this
2025-06-14 23:49:33 -06:00 | 45 commits to master since this releaseThe
_ready_event
is now set inGatewayClient
immediately after
receiving theREADY
payload, before dispatchingon_ready
to user code.
This ensuresClient.wait_until_ready()
andClient.is_ready()
accurately reflect the client's state before dependent user logic executes.This change allows simplifying
Client.sync_commands
by removing
redundantwait_until_ready()
calls andapplication_id
checks,
as the application ID is guaranteed to be available upon READY.Additionally,
User
model initialization is improved to correctly handle
nested user data found in certain API payloads (e.g., withinmember
objects in events likePresenceUpdate
).Add
SOUNDBOARD
andVIDEO_QUALITY_720_60FPS
toGuildFeature
enum.Downloads