nyx Typedoc
    Preparing search index...

    Class HttpNyxClient

    A CoreClient that receives interactions and webhook events over HTTP instead of the gateway, emitting them on its emitter.

    Implements

    Index
    acknowledgeTimeout: number
    api: API
    applicationId: string
    currentRequest: HttpEndpointRequest | null = null

    The request whose interaction or webhook event is being emitted, set only while its listeners are being called.

    decoder: TextDecoder = ...
    loggedIn: boolean = false
    maxTimestampAge: number
    pending: Map<string, () => void> = ...

    Interactions waiting to be acknowledged, keyed by their callback route.

    rest: REST
    webhookEventHandler: HttpEndpointHandler = ...
    • Parameters

      • options: {
            applicationId: string;
            injections?: Partial<Omit<HttpNyxClientOptions, "applicationId">>;
            publicKey: string;
            token: string;
        }

      Returns HttpNyxClient