| Modifier and Type | Class and Description |
|---|---|
static class |
DiscordWebhook.DiscordWebhookRequest
Class used to execute Discord Webhooks
|
| Constructor and Description |
|---|
DiscordWebhook(Configuration config) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToQueue(WebhookMessage msg)
Add message to queue of given webhook
|
void |
close()
Close webhook
|
String |
getWebhookName()
Get the webhook name
|
boolean |
ping(String asker)
Send test message to webhook
|
void |
runQueue()
Run queue each seconds.
|
void |
send(WebhookMessage msg)
Send the given message with adapted style to own webhook
|
public DiscordWebhook(Configuration config)
public void close()
Webhookpublic String getWebhookName()
WebhookgetWebhookName in interface Webhookpublic void addToQueue(WebhookMessage msg)
WebhookaddToQueue in interface Webhookmsg - the message to sendpublic void runQueue()
Webhookpublic void send(WebhookMessage msg)
Webhook