export declare class Client extends AsyncEventEmitter<ManagerShardEventsMap>

Constructors

constructor(
{ rest, gateway }: ClientOptions
)

Constructs a new instance of the Client class

readonly
api : API

readonly
gateway : Gateway

readonly
rest : REST

requestGuildMembers() : Promise<APIGuildMember[]>

Requests guild members from the gateway.

See also: https://discord.com/developers/docs/topics/gateway-events#request-guild-members

updatePresence() : Promise<void>

Updates the presence of the bot user

updateVoiceState() : Promise<void>

Updates the voice state of the bot user

See also: https://discord.com/developers/docs/topics/gateway-events#update-voice-state