A command requires this command class!

Hierarchy (view full)

Constructors

Accessors

  • get guildOnly(): boolean
  • This function restrict the command usage to guilds only!

    Returns boolean

    The function must be return a boolean!

    false
    

Methods

  • This function can be used in to send a error message in discord!

    Parameters

    • interaction: CommandInteraction<CacheType>
    • error: string

    Returns Promise<InteractionResponse<boolean>>

    The function returns the error reply!