Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SubCommandInit

Subcommand initialization options

interface

Hierarchy

Index

Properties

Optional announceSuccess

announceSuccess?: boolean

Whether to send a built-in success message when the command has completed (if no other response is defined)

Optional default_permission

default_permission?: boolean

Discord API default permission

Optional description

description?: string

Command description

Optional function

function?: CommandFunction

Command function (will be executed when calling a command)

name

name: string

Command name

Optional parameters

parameters?: ParameterSchema[] | "simple" | "no_input"

List of object defining all parameters of the command

Optional permissions

Object with permissions' options and resolvables

Optional usage

usage?: string

Command usage (if undefined, the usage will be automatically generated using parameters)

Generated using TypeDoc