Class WebhookUtil

java.lang.Object
de.presti.ree6.bot.util.WebhookUtil

public class WebhookUtil extends Object
Class to handle Webhook sends.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    deleteWebhook(String guildId, de.presti.ree6.sql.entities.webhook.Webhook webhookEntity)
    Delete a Webhook entry from the Guild.
    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.
    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.
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.