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()
Webhook
public String getWebhookName()
Webhook
getWebhookName
in interface Webhook
public void addToQueue(WebhookMessage msg)
Webhook
addToQueue
in interface Webhook
msg
- the message to sendpublic void runQueue()
Webhook
public void send(WebhookMessage msg)
Webhook