yde
1.3.0
jvm
yde
/
io.github.ydwk.yde.builders.slash
/
SlashOption
Slash
Option
class
SlashOption
(
val
name
:
String
,
val
description
:
String
,
val
type
:
SlashOptionType
,
val
required
:
Boolean
=
false
)
(
source
)
Members
Constructors
Slash
Option
Link copied to clipboard
constructor
(
name
:
String
,
description
:
String
,
type
:
SlashOptionType
,
required
:
Boolean
=
false
)
Functions
add
Choice
Link copied to clipboard
fun
addChoice
(
choice
:
SlashOptionChoice
)
:
SlashOption
add
Choices
Link copied to clipboard
fun
addChoices
(
vararg
choices
:
SlashOptionChoice
)
:
SlashOption
fun
addChoices
(
choices
:
List
<
SlashOptionChoice
>
)
:
SlashOption
to
Json
Link copied to clipboard
fun
toJson
(
)
:
JsonNode
Properties
description
Link copied to clipboard
val
description
:
String
name
Link copied to clipboard
val
name
:
String
required
Link copied to clipboard
val
required
:
Boolean
=
false
type
Link copied to clipboard
val
type
:
SlashOptionType