class GatewayAPI

export declare class GatewayAPI

Constructors

constructor(
rest: REST
)

Constructs a new instance of the GatewayAPI class

get(
options?: Pick<RequestData, 'signal'>
) : Promise<APIGatewayInfo>

Gets gateway information.

See also: https://discord.com/developers/docs/events/gateway#get-gateway

getBot(
options?: Pick<RequestData, 'auth' | 'signal'>
) : Promise<APIGatewayBotInfo>

Gets gateway information with additional metadata.

See also: https://discord.com/developers/docs/events/gateway#get-gateway-bot