diskord
5.2.0
common
diskord-core
/
com.jessecorbett.diskord.api.common
/
Button
Button
@
Serializable
data
class
Button
(
val
customId
:
String
?
=
null
,
val
disabled
:
Boolean
=
false
,
val
style
:
ButtonStyle
,
val
label
:
String
?
=
null
,
val
emoji
:
PartialEmoji
?
=
null
,
val
url
:
String
?
=
null
)
:
MessageComponent
(
source
)
Members
Constructors
Button
Link copied to clipboard
constructor
(
customId
:
String
?
=
null
,
disabled
:
Boolean
=
false
,
style
:
ButtonStyle
,
label
:
String
?
=
null
,
emoji
:
PartialEmoji
?
=
null
,
url
:
String
?
=
null
)
Properties
custom
Id
Link copied to clipboard
@
SerialName
(
value
=
"custom_id"
)
val
customId
:
String
?
=
null
disabled
Link copied to clipboard
@
SerialName
(
value
=
"disabled"
)
val
disabled
:
Boolean
=
false
emoji
Link copied to clipboard
@
SerialName
(
value
=
"emoji"
)
val
emoji
:
PartialEmoji
?
=
null
label
Link copied to clipboard
@
SerialName
(
value
=
"label"
)
val
label
:
String
?
=
null
style
Link copied to clipboard
@
SerialName
(
value
=
"style"
)
val
style
:
ButtonStyle
type
Link copied to clipboard
open
override
val
type
:
Int
=
2
url
Link copied to clipboard
@
SerialName
(
value
=
"url"
)
val
url
:
String
?
=
null