Skip to content

GuildApplicationCommandData

Extends

Type Parameters

Type Parameter
T extends undefined | FocusedOption

Properties

guildId

readonly guildId: string

Overrides

ApplicationCommandData.guildId

Defined in

transformers/src/factories/interaction.ts:448


id

readonly id: string

Inherited from

ApplicationCommandData.id

Defined in

transformers/src/factories/interaction.ts:456


name

readonly name: string

Inherited from

ApplicationCommandData.name

Defined in

transformers/src/factories/interaction.ts:457


type

readonly type: ApplicationCommandType

Inherited from

ApplicationCommandData.type

Defined in

transformers/src/factories/interaction.ts:458


resolved?

readonly optional resolved: ResolvedDataStructure

Inherited from

ApplicationCommandData.resolved

Defined in

transformers/src/factories/interaction.ts:459


targetId?

readonly optional targetId: string

Inherited from

ApplicationCommandData.targetId

Defined in

transformers/src/factories/interaction.ts:461

Accessors

subCommand

get subCommand(): undefined | string

Returns

undefined | string

Inherited from

ApplicationCommandData.subCommand

Defined in

transformers/src/factories/interaction.ts:596


subCommandGroup

get subCommandGroup(): undefined | string

Returns

undefined | string

Inherited from

ApplicationCommandData.subCommandGroup

Defined in

transformers/src/factories/interaction.ts:600

Methods

isGuildApplicationCommand()

isGuildApplicationCommand(): this is GuildApplicationCommandData<T>

Returns

this is GuildApplicationCommandData<T>

Inherited from

ApplicationCommandData.isGuildApplicationCommand

Defined in

transformers/src/factories/interaction.ts:572


isUIApplicationCommand()

isUIApplicationCommand(): this is UIApplicationCommandData<T>

Returns

this is UIApplicationCommandData<T>

Inherited from

ApplicationCommandData.isUIApplicationCommand

Defined in

transformers/src/factories/interaction.ts:576


isChatInputCommand()

isChatInputCommand(): this is Object

Returns

this is Object

Inherited from

ApplicationCommandData.isChatInputCommand

Defined in

transformers/src/factories/interaction.ts:580


isUserCommand()

isUserCommand(): this is Object

Returns

this is Object

Inherited from

ApplicationCommandData.isUserCommand

Defined in

transformers/src/factories/interaction.ts:584


isMessageCommand()

isMessageCommand(): this is Object

Returns

this is Object

Inherited from

ApplicationCommandData.isMessageCommand

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>

Inherited from

ApplicationCommandData.getFocused

Defined in

transformers/src/factories/interaction.ts:592


getString()

getString(name)

getString(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Inherited from

ApplicationCommandData.getString

Defined in

transformers/src/factories/interaction.ts:604

getString(name, assert)

getString(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Inherited from

ApplicationCommandData.getString

Defined in

transformers/src/factories/interaction.ts:605


getNumber()

getNumber(name)

getNumber(name): undefined | number

Parameters
ParameterType
namestring
Returns

undefined | number

Inherited from

ApplicationCommandData.getNumber

Defined in

transformers/src/factories/interaction.ts:613

getNumber(name, assert)

getNumber(name, assert): number

Parameters
ParameterType
namestring
asserttrue
Returns

number

Inherited from

ApplicationCommandData.getNumber

Defined in

transformers/src/factories/interaction.ts:614


getInteger()

getInteger(name)

getInteger(name): undefined | number

Parameters
ParameterType
namestring
Returns

undefined | number

Inherited from

ApplicationCommandData.getInteger

Defined in

transformers/src/factories/interaction.ts:622

getInteger(name, assert)

getInteger(name, assert): number

Parameters
ParameterType
namestring
asserttrue
Returns

number

Inherited from

ApplicationCommandData.getInteger

Defined in

transformers/src/factories/interaction.ts:623


getBoolean()

getBoolean(name)

getBoolean(name): undefined | boolean

Parameters
ParameterType
namestring
Returns

undefined | boolean

Inherited from

ApplicationCommandData.getBoolean

Defined in

transformers/src/factories/interaction.ts:631

getBoolean(name, assert)

getBoolean(name, assert): boolean

Parameters
ParameterType
namestring
asserttrue
Returns

boolean

Inherited from

ApplicationCommandData.getBoolean

Defined in

transformers/src/factories/interaction.ts:632


getUser()

getUser(name)

getUser(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Inherited from

ApplicationCommandData.getUser

Defined in

transformers/src/factories/interaction.ts:640

getUser(name, assert)

getUser(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Inherited from

ApplicationCommandData.getUser

Defined in

transformers/src/factories/interaction.ts:641


getChannel()

getChannel(name)

getChannel(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Inherited from

ApplicationCommandData.getChannel

Defined in

transformers/src/factories/interaction.ts:649

getChannel(name, assert)

getChannel(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Inherited from

ApplicationCommandData.getChannel

Defined in

transformers/src/factories/interaction.ts:650


getRole()

getRole(name)

getRole(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Inherited from

ApplicationCommandData.getRole

Defined in

transformers/src/factories/interaction.ts:658

getRole(name, assert)

getRole(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Inherited from

ApplicationCommandData.getRole

Defined in

transformers/src/factories/interaction.ts:659


getMentionable()

getMentionable(name)

getMentionable(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Inherited from

ApplicationCommandData.getMentionable

Defined in

transformers/src/factories/interaction.ts:667

getMentionable(name, assert)

getMentionable(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Inherited from

ApplicationCommandData.getMentionable

Defined in

transformers/src/factories/interaction.ts:668


getAttachment()

getAttachment(name)

getAttachment(name): undefined | string

Parameters
ParameterType
namestring
Returns

undefined | string

Inherited from

ApplicationCommandData.getAttachment

Defined in

transformers/src/factories/interaction.ts:676

getAttachment(name, assert)

getAttachment(name, assert): string

Parameters
ParameterType
namestring
asserttrue
Returns

string

Inherited from

ApplicationCommandData.getAttachment

Defined in

transformers/src/factories/interaction.ts:677