Package discord4j.discordjson.json
Interface InteractionData
@Immutable
public interface InteractionData
-
Method Summary
Modifier and TypeMethodDescriptiondiscord4j.discordjson.Idid of the application this interaction is fordiscord4j.discordjson.possible.Possible<String>static discord4j.discordjson.json.ImmutableInteractionData.Builderbuilder()discord4j.discordjson.possible.Possible<ChannelData>channel()Partial Channel that the interaction was sent fromdiscord4j.discordjson.possible.Possible<discord4j.discordjson.Id>the channel it was sent fromdiscord4j.discordjson.possible.Possible<Integer>context()discord4j.discordjson.possible.Possible<ApplicationCommandInteractionData>data()the command data payloaddiscord4j.discordjson.possible.Possible<discord4j.discordjson.Id>guildId()the guild it was sent fromdiscord4j.discordjson.possible.Possible<String>The guild's locale, if invoked in a guild.discord4j.discordjson.Idid()id of the interactiondiscord4j.discordjson.possible.Possible<String>locale()The issuing user's client locale.discord4j.discordjson.possible.Possible<MemberData>member()guild member data for the invoking userdiscord4j.discordjson.possible.Possible<MessageData>message()message associated with the interaction.token()a continuation token for responding to the interactioninttype()the type of the interactiondiscord4j.discordjson.possible.Possible<UserData>user()user object for the invoking user, if invoked in a DMintversion()read-only property, always 1
-
Method Details
-
builder
static discord4j.discordjson.json.ImmutableInteractionData.Builder builder() -
id
discord4j.discordjson.Id id()id of the interaction -
applicationId
discord4j.discordjson.Id applicationId()id of the application this interaction is for -
type
int type()the type of the interaction -
data
discord4j.discordjson.possible.Possible<ApplicationCommandInteractionData> data()the command data payload -
guildId
discord4j.discordjson.possible.Possible<discord4j.discordjson.Id> guildId()the guild it was sent from -
channel
discord4j.discordjson.possible.Possible<ChannelData> channel()Partial Channel that the interaction was sent from -
channelId
discord4j.discordjson.possible.Possible<discord4j.discordjson.Id> channelId()the channel it was sent from -
member
discord4j.discordjson.possible.Possible<MemberData> member()guild member data for the invoking user -
user
discord4j.discordjson.possible.Possible<UserData> user()user object for the invoking user, if invoked in a DM -
token
String token()a continuation token for responding to the interaction -
version
int version()read-only property, always 1 -
message
discord4j.discordjson.possible.Possible<MessageData> message()message associated with the interaction. -
locale
discord4j.discordjson.possible.Possible<String> locale()The issuing user's client locale. Present on all interactions except ping -
guildLocale
discord4j.discordjson.possible.Possible<String> guildLocale()The guild's locale, if invoked in a guild. Defaults to English for non-community servers -
appPermissions
discord4j.discordjson.possible.Possible<String> appPermissions() -
entitlements
List<EntitlementData> entitlements() -
authorizingIntegrationOwners
-
context
discord4j.discordjson.possible.Possible<Integer> context()
-