Add-On Documentation
Preparing search index...
The search index is not available
8Crafter's Debug Sticks API
8Crafter's Debug Sticks API
Globals
modules
cmds
commandSettings
Class commandSettings<T>
Type Parameters
T
extends
"built-in"
|
"custom"
|
"unknown"
=
"unknown"
Index
Constructors
constructor
Properties
#unsaved_
props
command?
command
Name
command
Settings
Id
custom
Command
Id?
default
Settings?
type
Accessors
enabled
is
Saved
parsed
required
Permission
Level
required
Tags
requires
Op
settings_
version
Methods
remove
save
toJSON
Constructors
constructor
new
commandSettings
<
T
extends
"built-in"
|
"custom"
|
"unknown"
=
"unknown"
>
(
commandSettingsId
:
string
,
command
?:
Globals
.
modules
.
cmds
.
command
<
T
>
,
)
:
Globals
.
modules
.
cmds
.
commandSettings
<
T
>
Type Parameters
T
extends
"built-in"
|
"custom"
|
"unknown"
=
"unknown"
Parameters
commandSettingsId
:
string
Optional
command
:
Globals
.
modules
.
cmds
.
command
<
T
>
Returns
Globals
.
modules
.
cmds
.
commandSettings
<
T
>
Properties
Private
#unsaved_
props
"#unsaved_props"
:
{}
= {}
Optional
command
command
?:
Globals
.
modules
.
cmds
.
command
<
T
>
command
Name
commandName
:
string
command
Settings
Id
commandSettingsId
:
string
Optional
custom
Command
Id
customCommandId
?:
string
Optional
default
Settings
defaultSettings
?:
T
extends
"built-in"
|
"unknown"
?
{
command_version
:
string
;
commandName
:
string
;
commandSettingsId
:
string
;
deprecated
?:
boolean
;
description
:
string
;
enabled
?:
boolean
;
escregexp
:
{
v
:
string
}
;
formats
:
command_formats_type_list
;
formatting_code
:
string
;
functional
?:
boolean
;
hidden
?:
boolean
;
requiredTags
:
string
[]
;
type
:
T
<
T
>
;
}
:
{
command_version
:
string
;
commandName
:
string
;
commandSettingsId
:
string
;
deprecated
?:
any
;
description
?:
any
;
enabled
?:
any
;
escregexp
?:
any
;
formats
?:
any
;
formatting_code
?:
any
;
functional
?:
any
;
hidden
?:
any
;
requiredTags
:
string
[]
;
type
:
T
;
}
type
type
:
T
Accessors
enabled
get
enabled
()
:
any
Returns
any
set
enabled
(
enabled
:
any
)
:
void
Parameters
enabled
:
any
Returns
void
is
Saved
get
isSaved
()
:
boolean
Returns
boolean
parsed
get
parsed
()
:
any
Returns
any
required
Permission
Level
get
requiredPermissionLevel
()
:
string
|
number
Returns
string
|
number
set
requiredPermissionLevel
(
requiredPermissionLevel
:
string
|
number
)
:
void
Parameters
requiredPermissionLevel
:
string
|
number
Returns
void
required
Tags
get
requiredTags
()
:
string
[]
Returns
string
[]
set
requiredTags
(
requiredTags
:
string
[]
)
:
void
Parameters
requiredTags
:
string
[]
Returns
void
requires
Op
get
requiresOp
()
:
boolean
Returns
boolean
set
requiresOp
(
requiresOp
:
boolean
)
:
void
Parameters
requiresOp
:
boolean
Returns
void
settings_
version
get
settings_version
()
:
any
Returns
any
Methods
remove
remove
()
:
void
Returns
void
save
save
(
settings
?:
|
Object
|
{
commandName
:
string
;
commandSettingsId
:
string
;
customCommandId
:
string
;
enabled
:
boolean
;
requiredPermissionLevel
:
string
|
number
;
requiredTags
:
string
[]
;
requiresOp
:
boolean
;
settings_version
:
any
;
type
:
"built-in"
|
"custom"
|
"unknown"
;
}
,
)
:
void
Parameters
Optional
settings
:
|
Object
|
{
commandName
:
string
;
commandSettingsId
:
string
;
customCommandId
:
string
;
enabled
:
boolean
;
requiredPermissionLevel
:
string
|
number
;
requiredTags
:
string
[]
;
requiresOp
:
boolean
;
settings_version
:
any
;
type
:
"built-in"
|
"custom"
|
"unknown"
;
}
Returns
void
toJSON
toJSON
()
:
any
Returns
any
Version
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
#unsaved_
props
command
command
Name
command
Settings
Id
custom
Command
Id
default
Settings
type
Accessors
enabled
is
Saved
parsed
required
Permission
Level
required
Tags
requires
Op
settings_
version
Methods
remove
save
toJSON
Add-On Documentation
8Crafter's Debug Sticks API
Loading...