export declare class Client extends AsyncEventEmitter<ManagerShardEventsMap>
export declare class Client extends AsyncEventEmitter<ManagerShardEventsMap>
No summary provided.
Extends
AsyncEventEmitter<ManagerShardEventsMap>constructor({ rest, gateway })
Constructs a new instance of the
Client
className | Type | Optional | Description |
---|---|---|---|
{ rest, gateway } | ClientOptions | No | None |
requestGuildMembers(options, timeout?)
:
Promise<APIGuildMember[]>
Requests guild members from the gateway.
Name | Type | Optional | Description |
---|---|---|---|
options | GatewayRequestGuildMembersData | No | The options for the request |
timeout | number | Yes | The timeout for waiting for each guild members chunk event |
updatePresence(shardId, options)
:
Promise<void>
Updates the presence of the bot user
Name | Type | Optional | Description |
---|---|---|---|
shardId | number | No | The id of the shard to update the presence in |
options | GatewayPresenceUpdateData | No | The options for updating the presence |
updateVoiceState(options)
:
Promise<void>
Updates the voice state of the bot user
Name | Type | Optional | Description |
---|---|---|---|
options | GatewayVoiceStateUpdateData | No | The options for updating the voice state |