Discord.https - v3.0.16
    Preparing search index...

    Represents a webhook for an Interaction

    Index

    Constructors

    Properties

    client: default

    The instantiating client

    id: string
    token: string

    Methods

    • Delete a message that was sent by this webhook.

      Parameters

      • message: string = "@original"

        The message to delete

      • OptionalthreadId: string

        The id of the thread this message belongs to

      Returns Promise<void>

    • Edits a message that was sent by this webhook.

      message The message to edit

      Parameters

      • message: string
      • options: string | { withResponse: true } & MessagePayload

        The options to provide

      Returns Promise<APIMessage>

      Returns the message edited by this webhook

    • Edits a message that was sent by this webhook.

      message The message to edit

      Parameters

      • message: string
      • options: string | MessagePayload & { withResponse?: false }

        The options to provide

      Returns Promise<undefined>

      Returns the message edited by this webhook

    • Sends a message with this webhook.

      Parameters

      Returns Promise<APIMessage>

    • Sends a message with this webhook.

      Parameters

      • options:
            | string
            | (
                (MessagePayload | InteractionReplyOptions) & { withResponse?: false | undefined; }
            )

        The content for the reply

      Returns Promise<undefined>