Package discord4j.discordjson.json
Interface ApplicationCommandInteractionData
@Immutable
public interface ApplicationCommandInteractionData
-
Method Summary
Modifier and TypeMethodDescriptionstatic discord4j.discordjson.json.ImmutableApplicationCommandInteractionData.Builderbuilder()discord4j.discordjson.possible.Possible<List<ComponentData>>array of message components for modal submitdiscord4j.discordjson.possible.Possible<Integer>discord4j.discordjson.possible.Possible<String>customId()discord4j.discordjson.possible.Possible<String>id()the ID of the invoked commanddiscord4j.discordjson.possible.Possible<String>name()the name of the invoked commanddiscord4j.discordjson.possible.Possible<List<ApplicationCommandInteractionOptionData>>options()the params + values from the userdiscord4j.discordjson.possible.Possible<ApplicationCommandInteractionResolvedData>resolved()converted users + members + roles + channelsdiscord4j.discordjson.possible.Possible<String>targetId()the ID of the user or message targeted by a user or message commanddiscord4j.discordjson.possible.Possible<Integer>type()the type of the invoked commandvalues()
-
Method Details
-
builder
static discord4j.discordjson.json.ImmutableApplicationCommandInteractionData.Builder builder() -
id
discord4j.discordjson.possible.Possible<String> id()the ID of the invoked command -
name
discord4j.discordjson.possible.Possible<String> name()the name of the invoked command -
type
discord4j.discordjson.possible.Possible<Integer> type()the type of the invoked command -
resolved
discord4j.discordjson.possible.Possible<ApplicationCommandInteractionResolvedData> resolved()converted users + members + roles + channels -
options
discord4j.discordjson.possible.Possible<List<ApplicationCommandInteractionOptionData>> options()the params + values from the user -
customId
discord4j.discordjson.possible.Possible<String> customId() -
componentType
discord4j.discordjson.possible.Possible<Integer> componentType() -
values
-
targetId
discord4j.discordjson.possible.Possible<String> targetId()the ID of the user or message targeted by a user or message command -
components
discord4j.discordjson.possible.Possible<List<ComponentData>> components()array of message components for modal submit
-