@typed-discord/interactions
    Preparing search index...

    Interface CallbackWithResponse

    Represents a callback that can be used to respond to an interaction and receive a response.

    interface CallbackWithResponse {
        callback?: (
            response: InteractionCallbackResponse,
            webhook: Webhook,
        ) => void;
        with_response: true;
    }
    Index

    Properties

    callback?: (response: InteractionCallbackResponse, webhook: Webhook) => void

    Called after responding to the interaction.

    Type Declaration

      • (response: InteractionCallbackResponse, webhook: Webhook): void
      • Parameters

        • response: InteractionCallbackResponse

          The Discord Interaction Callback Response.

        • webhook: Webhook

          The webhook to edit the original message or send follow-ups.

        Returns void

    with_response: true

    Creating a response to the interaction will returns a response.