Class MessageCommandBuilder

Constructors

Properties

ackMode: AckMode = "DeferredMessage"
name: string

Methods

  • Sets the flags for the mssage sent when sending the intial interaction response. Epehemeral means that it can only be see by the person issuing the command.

    Parameters

    Returns MessageCommandBuilder

  • Set the ack mode of this command (if you're experienced with the discord api, this is the callback type to the interaction)

    DeferredMessage: It will respond with a public deferred message. Custom: You handle the ack'ing of the interaction yourself, this allows you to use ephemeral responses and modals.

    Keep in mind when using custom, you have to ack the interaction within 3 seconds otherwise it will fail.

    Parameters

    Returns MessageCommandBuilder

Generated using TypeDoc