ReadonlytokenReadonlyintentsReadonlyversionReadonlyencodingReadonlylargeOptional ReadonlyshardGracefully close the connection code 1000/1001 invalidates the session any other code keeps the session alive for resume
Optionalreason: stringSend a payload to the Gateway.
Update the presence/status for this shard
request offline/large guild members from the Gateway this is used to lazy-load members into the cache via GUILD_MEMBERS_CHUNK events
Register an event listener.
Remove all listeners for a specific event, or all listeners entirely.
Optionalevent: string
Open a new WebSocket connection to the Gateway, if resuming, uses the resume_gateway_url, otherwise uses the base URL