Class Discord

java.lang.Object
org.tywrapstudios.ctd.discord.Discord

public class Discord extends Object
  • Constructor Details

    • Discord

      public Discord()
  • Method Details

    • sendLiteralToDiscord

      public static void sendLiteralToDiscord(String message, boolean embedMode, String webhookUrl)
    • sendChatMessageToDiscord

      public static void sendChatMessageToDiscord(String chatMessage, String playerName, String webhookUrl, String UUID)
    • sendEmbedToDiscord

      public static void sendEmbedToDiscord(String chatMessage, String playerName, String webhookUrl, String UUID, int embedColor)
    • sendCrashEmbed

      public static void sendCrashEmbed(String cause, int embedColor, String webhookUrl, Path log)
    • logSuccess

      public static void logSuccess(String playerName, String UUID, String chatMessage)
    • logFailure

      public static void logFailure(String chatMessage, int statusCode, String errorMessage, String playerName, String UUID)