Package discord4j.discordjson.json
Interface ApplicationCommandData
-
@Immutable public interface ApplicationCommandData
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description StringapplicationId()unique id of the parent applicationstatic discord4j.discordjson.json.ImmutableApplicationCommandData.Builderbuilder()discord4j.discordjson.possible.Possible<Boolean>defaultPermission()whether the command is enabled by default when the app is added to a guild (default to true)Stringdescription()0-100 character descriptionStringid()unique id of the commandStringname()1-32 character namediscord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>>options()the parameters for the commanddiscord4j.discordjson.possible.Possible<Integer>type()value of ApplicationCommandType (defaults to 1, CHAT_INPUT)
-
-
-
Method Detail
-
builder
static discord4j.discordjson.json.ImmutableApplicationCommandData.Builder builder()
-
id
String id()
unique id of the command
-
type
discord4j.discordjson.possible.Possible<Integer> type()
value of ApplicationCommandType (defaults to 1, CHAT_INPUT)
-
applicationId
String applicationId()
unique id of the parent application
-
name
String name()
1-32 character name
-
description
String description()
0-100 character description
-
options
discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>> options()
the parameters for the command
-
defaultPermission
discord4j.discordjson.possible.Possible<Boolean> defaultPermission()
whether the command is enabled by default when the app is added to a guild (default to true)
-
-