Interface ApplicationCommandRequest


@Immutable public interface ApplicationCommandRequest
  • Method Details

    • builder

      static discord4j.discordjson.json.ImmutableApplicationCommandRequest.Builder builder()
    • name

      String name()
      1-32 character name matching ^[\w-]{1,32}$ for CHAT_INPUT. USER and MESSAGE commands may be mixed case with spaces
    • nameLocalizations

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

      discord4j.discordjson.possible.Possible<String> description()
      1-100 character description. Not allowed for USER and MESSAGE command types
    • descriptionLocalizations

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

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

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

      discord4j.discordjson.possible.Possible<Boolean> defaultPermission()
    • defaultMemberPermissions

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

      discord4j.discordjson.possible.Possible<Integer> type()
      value of ApplicationCommandType (defaults to 1, CHAT_INPUT)
    • integrationTypes

      discord4j.discordjson.possible.Possible<List<Integer>> integrationTypes()
    • contexts

      discord4j.discordjson.possible.Possible<List<Integer>> contexts()
    • nsfw

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