oceanic.js
Version:
A NodeJS library for interfacing with Discord.
17 lines (16 loc) • 710 B
TypeScript
/** @module PingInteraction */
import Interaction from "./Interaction";
import { type InteractionTypes } from "../Constants";
import type { InteractionCallbackResponse, RawPingInteraction } from "../types/interactions";
import type Client from "../Client";
import type { JSONPingInteraction } from "../types/json";
/** Represents a PING interaction. This will not be received over a gateway connection. */
export default class PingInteraction extends Interaction {
type: InteractionTypes.PING;
constructor(data: RawPingInteraction, client: Client);
/**
* Responds to the interaction with a `PONG`.
*/
pong(): Promise<InteractionCallbackResponse>;
toJSON(): JSONPingInteraction;
}