Interface ApplicationCommandData


  • @Immutable
    public interface ApplicationCommandData
    • Method Detail

      • 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
      • description

        String description()
        0-100 character description
      • 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

        @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