Package discord4j.discordjson.json
Interface ApplicationCommandRequest
-
@Immutable public interface ApplicationCommandRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static discord4j.discordjson.json.ImmutableApplicationCommandRequest.Builder
builder()
Optional<String>
defaultMemberPermissions()
Set of permissions represented as a bit setdiscord4j.discordjson.possible.Possible<Boolean>
defaultPermission()
discord4j.discordjson.possible.Possible<String>
description()
1-100 character description.discord4j.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)String
name()
1-32 character name matching ^[\w-]{1,32}$ for CHAT_INPUT.discord4j.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)
-
-
-
Method Detail
-
builder
static discord4j.discordjson.json.ImmutableApplicationCommandRequest.Builder builder()
-
name
String name()
1-32 character name matching ^[\w-]{1,32}$ for CHAT_INPUT. USER and MESSAGE commands may be mixed case with spaces
-
nameLocalizations
discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> nameLocalizations()
-
description
discord4j.discordjson.possible.Possible<String> description()
1-100 character description. Not allowed for USER and MESSAGE command types
-
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
discord4j.discordjson.possible.Possible<Boolean> defaultPermission()
-
defaultMemberPermissions
Optional<String> defaultMemberPermissions()
Set of permissions represented as a bit set
-
type
discord4j.discordjson.possible.Possible<Integer> type()
value of ApplicationCommandType (defaults to 1, CHAT_INPUT)
-
-