Interface InteractionData


@Immutable public interface InteractionData
  • Method Summary

    Modifier and Type
    Method
    Description
    discord4j.discordjson.Id
    id of the application this interaction is for
    discord4j.discordjson.possible.Possible<String>
     
     
    static discord4j.discordjson.json.ImmutableInteractionData.Builder
     
    discord4j.discordjson.possible.Possible<ChannelData>
    Partial Channel that the interaction was sent from
    discord4j.discordjson.possible.Possible<discord4j.discordjson.Id>
    the channel it was sent from
    discord4j.discordjson.possible.Possible<Integer>
     
    discord4j.discordjson.possible.Possible<ApplicationCommandInteractionData>
    the command data payload
     
    discord4j.discordjson.possible.Possible<discord4j.discordjson.Id>
    the guild it was sent from
    discord4j.discordjson.possible.Possible<String>
    The guild's locale, if invoked in a guild.
    discord4j.discordjson.Id
    id()
    id of the interaction
    discord4j.discordjson.possible.Possible<String>
    The issuing user's client locale.
    discord4j.discordjson.possible.Possible<MemberData>
    guild member data for the invoking user
    discord4j.discordjson.possible.Possible<MessageData>
    message associated with the interaction.
    a continuation token for responding to the interaction
    int
    the type of the interaction
    discord4j.discordjson.possible.Possible<UserData>
    user object for the invoking user, if invoked in a DM
    int
    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

      Map<Integer,String> authorizingIntegrationOwners()
    • context

      discord4j.discordjson.possible.Possible<Integer> context()