Search
Preparing search index...
The search index is not available
@gcommands/components
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@gcommands/components
MessageButton
Class MessageButton
Hierarchy
BaseMessageComponent
MessageButton
Index
Constructors
constructor
Properties
custom
Id
disabled
emoji
label
style
type
url
Methods
set
Custom
Id
set
Disabled
set
Emoji
set
Label
set
Style
setURL
toJSON
resolve
Style
Constructors
constructor
new
Message
Button
(
data
?:
MessageButton
|
MessageButtonOptions
)
:
MessageButton
Parameters
Optional
data:
MessageButton
|
MessageButtonOptions
Returns
MessageButton
Properties
custom
Id
custom
Id
:
string
disabled
disabled
:
boolean
emoji
emoji
:
APIPartialEmoji
label
label
:
string
style
style
:
"PRIMARY"
|
"SECONDARY"
|
"SUCCESS"
|
"DANGER"
|
"LINK"
type
type
:
"BUTTON"
url
url
:
string
Methods
set
Custom
Id
set
Custom
Id
(
customId
:
string
)
:
MessageButton
Parameters
customId:
string
Returns
MessageButton
set
Disabled
set
Disabled
(
disabled
?:
boolean
)
:
MessageButton
Parameters
Optional
disabled:
boolean
Returns
MessageButton
set
Emoji
set
Emoji
(
emoji
:
EmojiIdentifierResolvable
)
:
MessageButton
Parameters
emoji:
EmojiIdentifierResolvable
Returns
MessageButton
set
Label
set
Label
(
label
:
string
)
:
MessageButton
Parameters
label:
string
Returns
MessageButton
set
Style
set
Style
(
style
:
MessageButtonStyleResolvable
)
:
MessageButton
Parameters
style:
MessageButtonStyleResolvable
Returns
MessageButton
setURL
setURL
(
url
:
string
)
:
MessageButton
Parameters
url:
string
Returns
MessageButton
toJSON
toJSON
(
)
:
unknown
Returns
unknown
Static
Private
resolve
Style
resolve
Style
(
style
:
MessageButtonStyleResolvable
)
:
"PRIMARY"
|
"SECONDARY"
|
"SUCCESS"
|
"DANGER"
|
"LINK"
Parameters
style:
MessageButtonStyleResolvable
Returns
"PRIMARY"
|
"SECONDARY"
|
"SUCCESS"
|
"DANGER"
|
"LINK"
Exports
Message
Button
constructor
custom
Id
disabled
emoji
label
style
type
url
set
Custom
Id
set
Disabled
set
Emoji
set
Label
set
Style
setURL
toJSON
resolve
Style
Generated using
TypeDoc