export declare class Client extends AsyncEventEmitter<ManagerShardEventsMap>

Constructors

constructor(
{ rest, ws }: ClientOptions
)

Constructs a new instance of the Client class

readonly
api : API

readonly
rest : REST

readonly
ws : WebSocketManager

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