Package discord4j.discordjson.json
Interface ApplicationCommandData
@Immutable
public interface ApplicationCommandData
-
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.Idunique id of the parent applicationstatic discord4j.discordjson.json.ImmutableApplicationCommandData.Builderbuilder()contexts()Set of permissions represented as a bit setdiscord4j.discordjson.possible.Possible<Boolean>Deprecated.0-100 character descriptiondiscord4j.discordjson.possible.Possible<Boolean>Deprecated.discord4j.discordjson.possible.Possible<discord4j.discordjson.Id>guildId()guild id of the command, if not globaldiscord4j.discordjson.Idid()unique id of the commandname()1-32 character namediscord4j.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)discord4j.discordjson.Idversion()Autoincrementing version identifier updated during substantial record changes
-
Method Details
-
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
-
description
String description()0-100 character description -
descriptionLocalizations
-
options
discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>> options()the parameters for the command -
dmPermission
Deprecated.usecontexts()insteadwhether the command is enabled in DM by default when the app is added globally (default to true) -
defaultPermission
Deprecated.whether the command is enabled by default when the app is added to a guild (default to true) -
defaultMemberPermissions
Set of permissions represented as a bit set -
integrationTypes
-
contexts
-
nsfw
discord4j.discordjson.possible.Possible<Boolean> nsfw()
-
contexts()instead