Type Alias CommandInteractionOptions<RefuseUncached>

CommandInteractionOptions: {
    deferReply: boolean;
    refuseUncached: RefuseUncached;
    replyEphemeral: boolean;
}

Type Parameters

  • RefuseUncached extends boolean

Type declaration

  • deferReply: boolean

    Wether or not the reply to this command should be deferred.

    • If true, replies to this command will be deferred, and the command will have 15 minutes to send/update the (deferred) reply, or send a follow-up message.
    • If false, replies will not be deferred, and the command will have 3 seconds to send the reply.
    false
    
  • refuseUncached: RefuseUncached

    Wether or not this command should refuse to run if the data for the interaction is not cached. Only has an effect for guild interactions.

    • If true, the command will refuse to run if the data for the interaction is not cached, and a generic error message will be sent to the user. The type for the interaction will be further narrowed down to a "cached" interaction.
    • If false, the command will run regardless of the cache state.
    false
    
  • replyEphemeral: boolean

    Wether or not replies to this command should be ephemeral.

    • If true, replies will only be visible to the user who invoked the command.
    • If false, replies will be visible to everyone in the channel.
    false