Class Embed.Builder

java.lang.Object
io.github._4drian3d.jdwebhooks.Embed.Builder
Enclosing class:
Embed

public static final class Embed.Builder extends Object
Embed builder
  • Method Details

    • title

      @Contract(value="_ -> this", mutates="this") public Embed.Builder title(@Nullable @Nullable String title)
    • type

      @Contract(value="_ -> this", mutates="this") public Embed.Builder type(@Nullable @Nullable String type)
    • description

      @Contract(value="_ -> this", mutates="this") public Embed.Builder description(@Nullable @Nullable String description)
    • url

      @Contract(value="_ -> this", mutates="this") public Embed.Builder url(@Nullable @Nullable String url)
    • timestamp

      @Contract(value="_ -> this", mutates="this") public Embed.Builder timestamp(@Nullable @Nullable Instant timestamp)
    • timestamp

      @Contract(value="_ -> this", mutates="this") public Embed.Builder timestamp(@Nullable @Nullable TemporalAccessor timestamp)
    • timestamp

      @Contract(value="_ -> this", mutates="this") public Embed.Builder timestamp(@Nullable @Nullable OffsetDateTime timestamp)
    • timestamp

      @Contract(value="_, _ -> this", mutates="this") public Embed.Builder timestamp(@NotNull @NotNull LocalDateTime dateTime, @NotNull @NotNull ZoneOffset offset)
    • color

      @Contract(value="_ -> this", mutates="this") public Embed.Builder color(@Nullable @Nullable Integer color)
    • footer

      @Contract(value="_ -> this", mutates="this") public Embed.Builder footer(@Nullable @Nullable Embed.Footer footer)
    • thumbnail

      @Contract(value="_ -> this", mutates="this") public Embed.Builder thumbnail(@Nullable @Nullable Embed.Thumbnail thumbnail)
    • video

      @Contract(value="_ -> this", mutates="this") public Embed.Builder video(@Nullable @Nullable Embed.Video video)
    • image

      @Contract(value="_ -> this", mutates="this") public Embed.Builder image(@Nullable @Nullable Embed.Image image)
    • author

      @Contract(value="_ -> this", mutates="this") public Embed.Builder author(@Nullable @Nullable Embed.Author author)
    • provider

      @Contract(value="_ -> this", mutates="this") public Embed.Builder provider(@Nullable @Nullable Embed.Provider provider)
    • field

      @Contract(value="_ -> this", mutates="this") public Embed.Builder field(@NotNull @NotNull Embed.Field field)
    • fields

      @Contract(value="_ -> this", mutates="this") public Embed.Builder fields(@NotNull @NotNull Collection<@NotNull Embed.Field> fields)
    • fields

      @Contract(value="_ -> this", mutates="this") public Embed.Builder fields(@NotNull @NotNull Embed.Field @NotNull ... fields)
    • build

      @Contract("-> new") @NotNull public @NotNull Embed build()
      Builds a new Embed.
      Returns:
      a new embed