Package de.presti.ree6.bot.util
Class WebhookUtil
java.lang.Object
de.presti.ree6.bot.util.WebhookUtil
Class to handle Webhook sends.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeleteWebhook(String guildId, de.presti.ree6.sql.entities.webhook.Webhook webhookEntity) Delete a Webhook entry from the Guild.static voidsendWebhook(club.minnced.discord.webhook.send.WebhookMessage message, de.presti.ree6.sql.entities.webhook.Webhook webhook) Send a Webhook-message to the wanted Webhook.static voidsendWebhook(LogMessage loggerMessage, club.minnced.discord.webhook.send.WebhookMessage message, long webhookId, String webhookToken, boolean isLog) Send a Webhook-message to the wanted Webhook.static voidsendWebhook(LogMessage loggerMessage, club.minnced.discord.webhook.send.WebhookMessage message, de.presti.ree6.sql.entities.webhook.Webhook webhook, boolean isLog) Send a Webhook-message to the wanted Webhook.
-
Method Details
-
sendWebhook
public static void sendWebhook(club.minnced.discord.webhook.send.WebhookMessage message, de.presti.ree6.sql.entities.webhook.Webhook webhook) Send a Webhook-message to the wanted Webhook.- Parameters:
message- the MessageContent.webhook- the Webhook.
-
sendWebhook
public static void sendWebhook(LogMessage loggerMessage, club.minnced.discord.webhook.send.WebhookMessage message, de.presti.ree6.sql.entities.webhook.Webhook webhook, boolean isLog) Send a Webhook-message to the wanted Webhook.- Parameters:
loggerMessage- the MessageContent, if it has been merged.message- the MessageContent.webhook- the Webhook.isLog- is the Webhook Message a Log-Message?
-
sendWebhook
public static void sendWebhook(LogMessage loggerMessage, club.minnced.discord.webhook.send.WebhookMessage message, long webhookId, String webhookToken, boolean isLog) Send a Webhook-message to the wanted Webhook.- Parameters:
loggerMessage- the MessageContent, if it has been merged.message- the MessageContent.webhookId- the ID of the Webhook.webhookToken- the Auth-Token of the Webhook.isLog- is the Webhook Message a Log-Message?
-
deleteWebhook
public static void deleteWebhook(String guildId, de.presti.ree6.sql.entities.webhook.Webhook webhookEntity) Delete a Webhook entry from the Guild.- Parameters:
guildId- the ID of the Guild.webhookEntity- the Webhook entity.
-