Package discord4j.discordjson.json
Interface ApplicationCommandData
-
@Immutable public interface ApplicationCommandData
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description discord4j.discordjson.Id
applicationId()
unique id of the parent applicationstatic discord4j.discordjson.json.ImmutableApplicationCommandData.Builder
builder()
Optional<String>
defaultMemberPermissions()
Set of permissions represented as a bit setdiscord4j.discordjson.possible.Possible<Boolean>
defaultPermission()
Deprecated.String
description()
0-100 character descriptiondiscord4j.discordjson.possible.Possible<Optional<Map<String,String>>>
descriptionLocalizations()
discord4j.discordjson.possible.Possible<Boolean>
dmPermission()
whether the command is enabled in DM by default when the app is added globally (default to true)discord4j.discordjson.possible.Possible<discord4j.discordjson.Id>
guildId()
guild id of the command, if not globaldiscord4j.discordjson.Id
id()
unique id of the commandString
name()
1-32 character namediscord4j.discordjson.possible.Possible<Optional<Map<String,String>>>
nameLocalizations()
discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>>
options()
the parameters for the commanddiscord4j.discordjson.possible.Possible<Integer>
type()
value of ApplicationCommandType (defaults to 1, CHAT_INPUT)discord4j.discordjson.Id
version()
Autoincrementing version identifier updated during substantial record changes
-
-
-
Method Detail
-
builder
static discord4j.discordjson.json.ImmutableApplicationCommandData.Builder builder()
-
id
discord4j.discordjson.Id id()
unique id of the command
-
version
discord4j.discordjson.Id version()
Autoincrementing version identifier updated during substantial record changes
-
guildId
discord4j.discordjson.possible.Possible<discord4j.discordjson.Id> guildId()
guild id of the command, if not global
-
type
discord4j.discordjson.possible.Possible<Integer> type()
value of ApplicationCommandType (defaults to 1, CHAT_INPUT)
-
applicationId
discord4j.discordjson.Id applicationId()
unique id of the parent application
-
name
String name()
1-32 character name
-
nameLocalizations
discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> nameLocalizations()
-
description
String description()
0-100 character description
-
descriptionLocalizations
discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> descriptionLocalizations()
-
options
discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>> options()
the parameters for the command
-
dmPermission
discord4j.discordjson.possible.Possible<Boolean> dmPermission()
whether the command is enabled in DM by default when the app is added globally (default to true)
-
defaultPermission
@Deprecated discord4j.discordjson.possible.Possible<Boolean> defaultPermission()
Deprecated.whether the command is enabled by default when the app is added to a guild (default to true)
-
-