Protected ReadonlyacknowledgeProtected ReadonlyapiProtected ReadonlyapplicationProtectedcurrentThe request whose interaction or webhook event is being emitted, set only while its listeners are being called.
Protected ReadonlydecoderProtected ReadonlyemitterProtectedloggedProtected ReadonlymaxProtected ReadonlypendingInteractions waiting to be acknowledged, keyed by their callback route.
Protected ReadonlyrestProtected ReadonlyverifierProtected ReadonlywebhookProtectedcheckReturns a rejection result if the request can't be accepted, or null if it's a valid, signed request.
Destroys the client's connection.
ProtectedemitProtectedemitProtectedemitReturns the @discordjs/core REST API.
Returns the bot's application ID.
Returns the request whose interaction or webhook event is being emitted, only while its listeners are called synchronously, or null otherwise. From handlers, use TypedFields.HttpRequest instead.
Returns the raw event emitter of this client, used to back client event buses.
Returns a handler for the Webhook Events URL, to mount with the same adapters as the client.
Verifies the request, answers PING, and otherwise emits the interaction, returning a 202 once it's acknowledged, its handlers finish, or the acknowledge timeout passes.
Verifies the request, answers PING, and otherwise emits the webhook event under its type, returning a 204.
Logs the client in, starting the gateway connection.
Protected ReadonlyonProtectedparseProtectedtextStaticcreate
A CoreClient that receives interactions and webhook events over HTTP instead of the gateway, emitting them on its emitter.