ImplementedSlashCommand
Defined in: packages/platform-discord/src/commands/slash-command.ts:488
A slash command implementation with its contract and registration JSON.
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”Name extends string = string
Params
Section titled “Params”Params = object
Properties
Section titled “Properties”component
Section titled “component”
readonlycomponent:Any
Defined in: packages/platform-discord/src/commands/slash-command.ts:494
contract
Section titled “contract”
readonlycontract:SlashCommandContract<Name,Params>
Defined in: packages/platform-discord/src/commands/slash-command.ts:493
readonlyoptionaljson?:SlashCommandJson
Defined in: packages/platform-discord/src/client/core.ts:93
Registration JSON for Discord.
Inherited from
Section titled “Inherited from”
readonlyname:Name
Defined in: packages/platform-discord/src/commands/slash-command.ts:492
Overrides
Section titled “Overrides”session?
Section titled “session?”
readonlyoptionalsession?:object
Defined in: packages/platform-discord/src/client/core.ts:96
The component a resumed message from this command should mount.
component
Section titled “component”
readonlycomponent:AnyComponent
decodeProps?
Section titled “decodeProps?”
readonlyoptionaldecodeProps?: (props,interaction) =>unknown
Parameters
Section titled “Parameters”unknown
interaction
Section titled “interaction”Returns
Section titled “Returns”unknown
readonlykey:string
layer?
Section titled “layer?”
readonlyoptionallayer?:Layer<any,never,never>
Provided again when a restarted process resumes the component.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”handler()
Section titled “handler()”handler(
interaction,client):Effect<void>
Defined in: packages/platform-discord/src/client/core.ts:94
Parameters
Section titled “Parameters”interaction
Section titled “interaction”client
Section titled “client”CommandClient
Returns
Section titled “Returns”Effect<void>