Class WebHook.Builder

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

public static final class WebHook.Builder extends Object
WebHook Builder
  • Method Details

    • content

      public WebHook.Builder content(@NotNull @NotNull String content)
      Sets the content string of this embed.

      It can be an empty string and in case no content is provided, an empty string will be used

      Parameters:
      content - the content string
      Returns:
      this builder
    • username

      public WebHook.Builder username(@Nullable @Nullable String username)
      Sets the override username of this WebHook.
      Parameters:
      username - the override username
      Returns:
      this builder
    • avatarURL

      public WebHook.Builder avatarURL(@Nullable @Nullable String avatarURL)
      Sets the Avatar URL of this WebHook
      Parameters:
      avatarURL - the Avatar URL
      Returns:
      this builder
    • tts

      public WebHook.Builder tts(@Nullable @Nullable Boolean tts)
    • embed

      public WebHook.Builder embed(@NotNull @NotNull Embed embed)
    • embeds

      public WebHook.Builder embeds(@NotNull @NotNull List<@NotNull Embed> embeds)
    • embeds

      public WebHook.Builder embeds(@NotNull @NotNull Embed @NotNull ... embeds)
    • allowedMentions

      public WebHook.Builder allowedMentions(@Nullable @Nullable Boolean allowedMentions)
    • threadName

      public WebHook.Builder threadName(@Nullable @Nullable String threadName)
    • build

      public WebHook build()