Class MessageUtil

java.lang.Object
net.essentialsx.discord.util.MessageUtil

public final class MessageUtil extends Object
  • Method Details

    • sanitizeDiscordMarkdown

      public static String sanitizeDiscordMarkdown(String message)
      Sanitizes text to be sent to Discord, escaping any Markdown syntax.
    • formatMessage

      public static String formatMessage(MessageFormat format, Object... args)
      Shortcut method allowing for use of varags in MessageFormat instances