Search
Preparing search index...
The search index is not available
Detritus Client
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Detritus Client
utils/components/button
ComponentButton
Class ComponentButton
Utils Component Button Structure
Hierarchy
ComponentActionBase
ComponentButton
Index
Constructors
constructor
Properties
_keys
custom
Id
disabled
emoji
label
style
type
url
Methods
[custom]
_get
From
Snake
_set
From
Snake
difference
differences
differences
Between
has
Difference
has
Differences
has
Differences
Between
merge
merge
Value
on
Error
run
set
Custom
Id
set
Disabled
set
Emoji
set
Label
set
Style
set
Url
toJSON
Constructors
constructor
new
Component
Button
(
data
?:
ComponentActionData
)
:
ComponentButton
Parameters
data:
ComponentActionData
= {}
Returns
ComponentButton
Properties
Readonly
_keys
_keys
:
BaseSet
<
string
>
= ...
Optional
custom
Id
custom
Id
:
null
|
string
Optional
disabled
disabled
:
boolean
Optional
emoji
emoji
:
null
|
ComponentEmojiData
Optional
label
label
:
null
|
string
style
style
:
MessageComponentButtonStyles
= ...
type
type
:
MessageComponentTypes
= ...
Optional
url
url
:
null
|
string
Methods
[custom]
[custom]
(
)
:
object
Returns
object
_get
From
Snake
_get
From
Snake
(
key
:
string
)
:
any
Parameters
key:
string
Returns
any
_set
From
Snake
_set
From
Snake
(
key
:
string
, value
:
any
)
:
any
Parameters
key:
string
value:
any
Returns
any
difference
difference
(
key
:
string
, value
:
any
)
:
[
boolean
,
any
]
Parameters
key:
string
value:
any
Returns
[
boolean
,
any
]
differences
differences
(
data
?:
BaseStructureData
)
:
null
|
object
Parameters
Optional
data:
BaseStructureData
Returns
null
|
object
differences
Between
differences
Between
(
structure
:
Structure
)
:
null
|
object
Parameters
structure:
Structure
Returns
null
|
object
has
Difference
has
Difference
(
key
:
string
, value
:
any
)
:
boolean
Parameters
key:
string
value:
any
Returns
boolean
has
Differences
has
Differences
(
data
?:
BaseStructureData
)
:
boolean
Parameters
Optional
data:
BaseStructureData
Returns
boolean
has
Differences
Between
has
Differences
Between
(
structure
:
Structure
)
:
boolean
Parameters
structure:
Structure
Returns
boolean
merge
merge
(
data
?:
BaseStructureData
)
:
void
Parameters
Optional
data:
BaseStructureData
Returns
void
merge
Value
merge
Value
(
key
:
string
, value
:
any
)
:
void
Parameters
key:
string
value:
any
Returns
void
Optional
on
Error
on
Error
(
context
:
ComponentContext
, error
:
Error
)
:
any
Parameters
context:
ComponentContext
error:
Error
Returns
any
Optional
run
run
(
context
:
ComponentContext
)
:
any
Parameters
context:
ComponentContext
Returns
any
set
Custom
Id
set
Custom
Id
(
customId
:
null
|
string
)
:
ComponentButton
Parameters
customId:
null
|
string
Returns
ComponentButton
set
Disabled
set
Disabled
(
disabled
:
boolean
)
:
ComponentButton
Parameters
disabled:
boolean
Returns
ComponentButton
set
Emoji
set
Emoji
(
emoji
:
null
|
ComponentEmojiData
)
:
ComponentButton
Parameters
emoji:
null
|
ComponentEmojiData
Returns
ComponentButton
set
Label
set
Label
(
label
:
null
|
string
)
:
ComponentButton
Parameters
label:
null
|
string
Returns
ComponentButton
set
Style
set
Style
(
style
:
MessageComponentButtonStyles
)
:
ComponentButton
Parameters
style:
MessageComponentButtonStyles
Returns
ComponentButton
set
Url
set
Url
(
url
:
null
|
string
)
:
ComponentButton
Parameters
url:
null
|
string
Returns
ComponentButton
toJSON
toJSON
(
)
:
RawChannelMessageComponent
Returns
RawChannelMessageComponent
Exports
utils/components/button
Component
Button
constructor
_keys
custom
Id
disabled
emoji
label
style
type
url
[custom]
_get
From
Snake
_set
From
Snake
difference
differences
differences
Between
has
Difference
has
Differences
has
Differences
Between
merge
merge
Value
on
Error
run
set
Custom
Id
set
Disabled
set
Emoji
set
Label
set
Style
set
Url
toJSON
Generated using
TypeDoc
Utils Component Button Structure