Search...

Client

export declare class Client extends AsyncEventEmitter<ManagerShardEventsMap> 
export declare class Client extends AsyncEventEmitter<ManagerShardEventsMap> 

No summary provided.

Extends

AsyncEventEmitter<ManagerShardEventsMap>

constructor({ rest, ws })

Constructs a new instance of the Client class
NameTypeOptionalDescription
{ rest, ws }ClientOptionsNoNone
Readonly

api

:

API

Readonly

rest

:

REST

Readonly

ws

:

WebSocketManager

requestGuildMembers(options, timeout?)

:

Promise<APIGuildMember[]>

NameTypeOptionalDescription
optionsGatewayRequestGuildMembersDataNoThe options for the request
timeoutnumberYesThe timeout for waiting for each guild members chunk event

updatePresence(shardId, options)

:

Promise<void>

Updates the presence of the bot user
NameTypeOptionalDescription
shardIdnumberNoThe id of the shard to update the presence in
optionsGatewayPresenceUpdateDataNoThe options for updating the presence

updateVoiceState(options)

:

Promise<void>

NameTypeOptionalDescription
optionsGatewayVoiceStateUpdateDataNoThe options for updating the voice state