java.lang.Object
io.github._4drian3d.jdwebhooks.Embed.Builder
- Enclosing class:
Embed
Embed builder
-
Method Summary
Modifier and TypeMethodDescriptionauthor(@Nullable Embed.Author author) @NotNull Embedbuild()Builds a new Embed.description(@Nullable String description) field(@NotNull Embed.Field field) fields(@NotNull Embed.Field @NotNull ... fields) fields(@NotNull Collection<@NotNull Embed.Field> fields) footer(@Nullable Embed.Footer footer) image(@Nullable Embed.Image image) provider(@Nullable Embed.Provider provider) thumbnail(@Nullable Embed.Thumbnail thumbnail) timestamp(@NotNull LocalDateTime dateTime, @NotNull ZoneOffset offset) timestamp(@Nullable OffsetDateTime timestamp) timestamp(@Nullable TemporalAccessor timestamp) video(@Nullable Embed.Video video)
-
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) -
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
Builds a new Embed.- Returns:
- a new embed
-