Package discord4j.discordjson.json
Interface ApplicationCommandRequest
@Immutable
public interface ApplicationCommandRequest
-
Method Summary
Modifier and TypeMethodDescriptionstatic discord4j.discordjson.json.ImmutableApplicationCommandRequest.Builderbuilder()contexts()Set of permissions represented as a bit setdiscord4j.discordjson.possible.Possible<Boolean>discord4j.discordjson.possible.Possible<String>1-100 character description.discord4j.discordjson.possible.Possible<Boolean>whether the command is enabled in DM by default when the app is added globally (default to true)name()1-32 character name matching ^[\w-]{1,32}$ for CHAT_INPUT.discord4j.discordjson.possible.Possible<Boolean>nsfw()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 Details
-
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
-
description
discord4j.discordjson.possible.Possible<String> description()1-100 character description. Not allowed for USER and MESSAGE command types -
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
Set of permissions represented as a bit set -
type
discord4j.discordjson.possible.Possible<Integer> type()value of ApplicationCommandType (defaults to 1, CHAT_INPUT) -
integrationTypes
-
contexts
-
nsfw
discord4j.discordjson.possible.Possible<Boolean> nsfw()
-