Class DiscordWebhookClient

java.lang.Object
tfagaming.projects.minecraft.homestead.discord.DiscordWebhookClient

public class DiscordWebhookClient extends Object
  • Constructor Details

    • DiscordWebhookClient

      public DiscordWebhookClient(String url)
  • Method Details

    • sendContent

      public void sendContent(@NotNull @NotNull String message, Object... data) throws Exception
      Throws:
      Exception
    • sendContent

      public void sendContent(@NotNull @NotNull String message) throws Exception
      Throws:
      Exception
    • sendEmbed

      public void sendEmbed(@Nullable @Nullable String title, @NotNull @NotNull String description, int color, String[][] fields) throws Exception
      Throws:
      Exception
    • getEventEnabled

      public boolean getEventEnabled(String eventName)
    • getEventMessage

      public String getEventMessage(String eventName)
    • callEventDiscordWebhook

      public void callEventDiscordWebhook(APIEvent event)