class Client
extends
AsyncEventEmitter<ManagerShardEventsMap>export declare class Client extends AsyncEventEmitter<ManagerShardEventsMap>
Constructors
{ rest, gateway }: ClientOptions)
constructor({ rest, gateway }: ClientOptions
Constructs a new instance of the Client
class
requestGuildMembersoptions: GatewayRequestGuildMembersDatatimeout?: number) : Promise<APIGuildMember[]> (
options: GatewayRequestGuildMembersData
timeout?: number
Requests guild members from the gateway.
See also: https://discord.com/developers/docs/topics/gateway-events#request-guild-members
updatePresenceshardId: numberoptions: GatewayPresenceUpdateData) : Promise<void> (
shardId: number
options: GatewayPresenceUpdateData
Updates the presence of the bot user
updateVoiceStateoptions: GatewayVoiceStateUpdateData) : Promise<void> (
options: GatewayVoiceStateUpdateData
Updates the voice state of the bot user
See also: https://discord.com/developers/docs/topics/gateway-events#update-voice-state