Package discord4j.discordjson.json
Interface ApplicationCommandInteractionData
-
@Immutable public interface ApplicationCommandInteractionData
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static discord4j.discordjson.json.ImmutableApplicationCommandInteractionData.Builder
builder()
discord4j.discordjson.possible.Possible<List<ComponentData>>
components()
array of message components for modal submitdiscord4j.discordjson.possible.Possible<Integer>
componentType()
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 commanddiscord4j.discordjson.possible.Possible<List<String>>
values()
-
-
-
Method Detail
-
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()
-
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
-
-