Class WebhookClient
java.lang.Object
org.tywrapstudios.ctd.discord.webhook.WebhookClient
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn interface for handling webhook execution responses. -
Constructor Summary
ConstructorsConstructorDescriptionWebhookClient(WebhookClient.Callback callback) Constructs a new instance of WebhookClient with a specified callback. -
Method Summary
-
Constructor Details
-
WebhookClient
Constructs a new instance of WebhookClient with a specified callback.- Parameters:
callback- The callback to handle webhook execution responses.
-
-
Method Details
-
send
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.
-