Class WebhookClient

java.lang.Object
org.tywrapstudios.ctd.discord.webhook.WebhookClient

public class WebhookClient extends Object
  • Constructor Details

    • WebhookClient

      public WebhookClient(WebhookClient.Callback callback)
      Constructs a new instance of WebhookClient with a specified callback.
      Parameters:
      callback - The callback to handle webhook execution responses.
  • Method Details

    • send

      public void send(String webhookUrl, org.json.JSONObject message)
      Sends a message to a specified webhook URL.
      Parameters:
      webhookUrl - The URL of the webhook to send the message to.
      message - The JSON message to be sent.