Interface ApplicationCommandRequest


  • @Immutable
    public interface ApplicationCommandRequest
    • Method Detail

      • 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
      • 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()
      • 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)