Skip to content

ApplicationCommandData

Extended by

Type Parameters

Type ParameterDefault type
T extends undefined | FocusedOptionundefined

Constructors

new ApplicationCommandData()

new ApplicationCommandData<T>(data): ApplicationCommandData<T>

Parameters

ParameterType
dataDataStructure

Returns

ApplicationCommandData<T>

Defined in

transformers/src/factories/interaction.ts:477

Properties

id

readonly id: string

Defined in

transformers/src/factories/interaction.ts:456


name

readonly name: string

Defined in

transformers/src/factories/interaction.ts:457


type

readonly type: ApplicationCommandType

Defined in

transformers/src/factories/interaction.ts:458


resolved?

readonly optional resolved: ResolvedDataStructure

Defined in

transformers/src/factories/interaction.ts:459


guildId?

readonly optional guildId: string

Defined in

transformers/src/factories/interaction.ts:460


targetId?

readonly optional targetId: string

Defined in

transformers/src/factories/interaction.ts:461

Accessors

subCommand

get subCommand(): undefined | string

Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:596


subCommandGroup

get subCommandGroup(): undefined | string

Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:600

Methods

isGuildApplicationCommand()

isGuildApplicationCommand(): this is GuildApplicationCommandData<T>

Returns

this is GuildApplicationCommandData<T>

Defined in

transformers/src/factories/interaction.ts:572


isUIApplicationCommand()

isUIApplicationCommand(): this is UIApplicationCommandData<T>

Returns

this is UIApplicationCommandData<T>

Defined in

transformers/src/factories/interaction.ts:576


isChatInputCommand()

isChatInputCommand(): this is Object

Returns

this is Object

Defined in

transformers/src/factories/interaction.ts:580


isUserCommand()

isUserCommand(): this is Object

Returns

this is Object

Defined in

transformers/src/factories/interaction.ts:584


isMessageCommand()

isMessageCommand(): this is Object

Returns

this is Object

Defined in

transformers/src/factories/interaction.ts:588


getFocused()

getFocused<F>(): ParseFocusedReturnType<T, F>

Type Parameters

Type ParameterDefault type
F extends string | number | booleanstring | number | boolean

Returns

ParseFocusedReturnType<T, F>

Defined in

transformers/src/factories/interaction.ts:592


getString()

getString(name)

getString(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:604

getString(name, assert)

getString(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Defined in

transformers/src/factories/interaction.ts:605


getNumber()

getNumber(name)

getNumber(name): undefined | number

Parameters
ParameterType
namestring
Returns

undefined | number

Defined in

transformers/src/factories/interaction.ts:613

getNumber(name, assert)

getNumber(name, assert): number

Parameters
ParameterType
namestring
asserttrue
Returns

number

Defined in

transformers/src/factories/interaction.ts:614


getInteger()

getInteger(name)

getInteger(name): undefined | number

Parameters
ParameterType
namestring
Returns

undefined | number

Defined in

transformers/src/factories/interaction.ts:622

getInteger(name, assert)

getInteger(name, assert): number

Parameters
ParameterType
namestring
asserttrue
Returns

number

Defined in

transformers/src/factories/interaction.ts:623


getBoolean()

getBoolean(name)

getBoolean(name): undefined | boolean

Parameters
ParameterType
namestring
Returns

undefined | boolean

Defined in

transformers/src/factories/interaction.ts:631

getBoolean(name, assert)

getBoolean(name, assert): boolean

Parameters
ParameterType
namestring
asserttrue
Returns

boolean

Defined in

transformers/src/factories/interaction.ts:632


getUser()

getUser(name)

getUser(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:640

getUser(name, assert)

getUser(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Defined in

transformers/src/factories/interaction.ts:641


getChannel()

getChannel(name)

getChannel(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:649

getChannel(name, assert)

getChannel(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Defined in

transformers/src/factories/interaction.ts:650


getRole()

getRole(name)

getRole(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:658

getRole(name, assert)

getRole(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Defined in

transformers/src/factories/interaction.ts:659


getMentionable()

getMentionable(name)

getMentionable(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:667

getMentionable(name, assert)

getMentionable(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Defined in

transformers/src/factories/interaction.ts:668


getAttachment()

getAttachment(name)

getAttachment(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Defined in

transformers/src/factories/interaction.ts:676

getAttachment(name, assert)

getAttachment(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Defined in

transformers/src/factories/interaction.ts:677