detritus

InteractionCommand<ParsedArgsFinished>class

The most basic Structure class, every structure extends this

On this page

The most basic Structure class, every structure extends this

import { Interaction } from 'detritus-client';

Interaction.InteractionCommand;
StructureInteractionCommand
<ParsedArgsFinished = ParsedArgs>
35 properties23 methods10 inheritedsrc/interaction/command.ts:302

Constructor

Properties

_file?
string
readonlyoptional
_options?
contexts
Default null
defaultMemberPermissions
bigint | null
Default null
defaultPermission
boolean
Default true
description
string
Default ''
descriptionLocalizations
Record<string, string | undefined> | null
Default null
disableDm?
boolean
optional
dmPermission
boolean
Default true
global
boolean
Default true
guildIds?
BaseSet<string>
optional
ids
BaseCollection<string, string>
integrationTypes?
metadata
Record<string, any>
Default {}
name
string
Default ''
nameLocalizations
Record<string, string | undefined> | null
Default null
nsfw
boolean
Default false
permissions?
bigint[]
optional
permissionsClient?
bigint[]
optional
permissionsIgnoreClientOwner?
boolean
optional
ratelimits
Default []
triggerLoadingAfter?
number
optional
triggerLoadingAsEphemeral?
boolean
optional
type
Default ApplicationCommandTypes.CHAT_INPUT

Accessors

fullName
string
get
hash
string
get
hasRun
boolean
get
isContextCommand
boolean
get
isContextCommandMessage
boolean
get
isContextCommandUser
boolean
get
isGroup
boolean
get
isSlashCommand
boolean
get
key
string
get
length
number
get
lengthOptions
number
get
options
get · set

Methods