Global

Members

# (constant) CommandOptionTypes :number

Enum for command option types.

Type:
  • number
Properties
Name Type Description
BOOLEAN number
CHANNEL number
INTEGER number
MENTIONABLE number
NUMBER number
ROLE number
STRING number
USER number
Source:

# (constant) CommandRoles :number

Enum for command roles.

Type:
  • number
Properties
Name Type Description
COMMAND number
CONTAINER number
SUBCOMMAND number
SUBCOMMAND_CONTAINER number
Source:

# (constant) CommandTypes :number

Enum for command types.

Type:
  • number
Properties
Name Type Description
GLOBAL number
GUILD number
Source:

Type Definitions

# Command

Type:
  • Object
Properties
Name Type Attributes Description
id String
name String
role module:types~CommandRole
execute module:types~CommandExecute <optional>
description String <optional>
options Array.<module:types~CommandOption> <optional>
botPerms Array.<String> <optional>
userPerms Array.<String> <optional>
guild String <optional>
filePath String <optional>
parent String <optional>
children Array.<String> <optional>
settings module:types~CommandSettings <optional>
Source:

# CommandExecute(interaction)

Parameters:
Name Type Description
interaction module:discord.js~Interaction
Source:

# CommandLocalisationObject

Type:
  • Object
Properties
Name Type Description
name module:discord-api-types/v10~LocalizationMap
description module:discord-api-types/v10~LocalizationMap
Source:

# CommandOption

Type:
  • Object
Properties
Name Type Attributes Description
type module:types~CommandOptionType
name String
description String <optional>
required boolean <optional>
choices Array.<module:types~CommandOptionChoice> <optional>
Source:

# CommandOptionChoice

Type:
  • Object
Properties
Name Type Description
name String
value String | Number
Source:

# CommandOptionLocalisationObject

Type:
  • Object.<module:discord-api-types/v10~Locale, module:types~CommandLocalisationObject>
Source:

# CommandOptionType

Type:
  • 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
Source:

# CommandRole

Type:
  • 0 | 1 | 2 | 3
Source:

# CommandSettings

Type:
  • Object
Properties
Name Type Attributes Default Description
allowInDMs Boolean <optional>
false
Source:

# CommandType

Type:
  • 0 | 1
Source:

# Event

Type:
  • Object
Properties
Name Type Attributes Description
name String <optional>
event String
settings module:types~EventSettingsObject
execute function
filePath String
Source:

# EventDebounceSettingsObject

Type:
  • Object
Properties
Name Type Attributes Default Description
time Number
risingEdge Boolean <optional>
false
Source:

# EventSettingsObject

Type:
  • Object
Properties
Name Type Description
debounce module:types~EventDebounceSettingsObject
Source:

# ISOLangCode

An ISO 639-1 language code.

Type:
  • 'aa' | 'ab' | 'ae' | 'af' | 'ak' | 'am' | 'an' | 'ar' | 'as' | 'av' | 'ay' | 'az' | 'ba' | 'be' | 'bg' | 'bh' | 'bm' | 'bi' | 'bn' | 'bo' | 'br' | 'bs' | 'ca' | 'ce' | 'ch' | 'co' | 'cr' | 'cs' | 'cu' | 'cv' | 'cy' | 'da' | 'de' | 'dv' | 'dz' | 'ee' | 'el' | 'en' | 'eo' | 'es' | 'et' | 'eu' | 'fa' | 'ff' | 'fi' | 'fj' | 'fo' | 'fr' | 'fy' | 'ga' | 'gd' | 'gl' | 'gn' | 'gu' | 'gv' | 'ha' | 'he' | 'hi' | 'ho' | 'hr' | 'ht' | 'hu' | 'hy' | 'hz' | 'ia' | 'id' | 'ie' | 'ig' | 'ii' | 'ik' | 'io' | 'is' | 'it' | 'iu' | 'ja' | 'jv' | 'ka' | 'kg' | 'ki' | 'kj' | 'kk' | 'kl' | 'km' | 'kn' | 'ko' | 'kr' | 'ks' | 'ku' | 'kv' | 'kw' | 'ky' | 'la' | 'lb' | 'lg' | 'li' | 'ln' | 'lo' | 'lt' | 'lu' | 'lv' | 'mg' | 'mh' | 'mi' | 'mk' | 'ml' | 'mn' | 'mr' | 'ms' | 'mt' | 'my' | 'na' | 'nb' | 'nd' | 'ne' | 'ng' | 'nl' | 'nn' | 'no' | 'nr' | 'nv' | 'ny' | 'oc' | 'oj' | 'om' | 'or' | 'os' | 'pa' | 'pi' | 'pl' | 'ps' | 'pt' | 'qu' | 'rm' | 'rn' | 'ro' | 'ru' | 'rw' | 'sa' | 'sc' | 'sd' | 'se' | 'sg' | 'si' | 'sk' | 'sl' | 'sm' | 'sn' | 'so' | 'sq' | 'sr' | 'ss' | 'st' | 'su' | 'sv' | 'sw' | 'ta' | 'te' | 'tg' | 'th' | 'ti' | 'tk' | 'tl' | 'tn' | 'to' | 'tr' | 'ts' | 'tt' | 'tw' | 'ty' | 'ug' | 'uk' | 'ur' | 'uz' | 've' | 'vi' | 'vo' | 'wa' | 'wo' | 'xh' | 'yi' | 'yo' | 'za' | 'zh' | 'zu'

# Language

A set of language data.

Type:
  • Object
Properties
Name Type Description
id module:handlers/LanguageHandler~ISOLangCode

The language's ISO 639-1 code.

data Object

All translations.