Interface ApplicationCommandData


@Immutable public interface ApplicationCommandData
  • 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

      discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> nameLocalizations()
    • description

      String description()
      0-100 character description
    • descriptionLocalizations

      discord4j.discordjson.possible.Possible<Optional<Map<String,String>>> descriptionLocalizations()
    • options

      discord4j.discordjson.possible.Possible<List<ApplicationCommandOptionData>> options()
      the parameters for the command
    • dmPermission

      @Deprecated discord4j.discordjson.possible.Possible<Boolean> dmPermission()
      Deprecated.
      use contexts() instead
      whether the command is enabled in DM by default when the app is added globally (default to true)
    • defaultPermission

      @Deprecated discord4j.discordjson.possible.Possible<Boolean> defaultPermission()
      Deprecated.
      whether the command is enabled by default when the app is added to a guild (default to true)
    • defaultMemberPermissions

      Optional<String> defaultMemberPermissions()
      Set of permissions represented as a bit set
    • integrationTypes

      List<Integer> integrationTypes()
    • contexts

      List<Integer> contexts()
    • nsfw

      discord4j.discordjson.possible.Possible<Boolean> nsfw()