Class DiscordBot

java.lang.Object
com.zenith.discord.DiscordBot

public class DiscordBot extends Object
  • Field Details

  • Constructor Details

    • DiscordBot

      public DiscordBot()
  • Method Details

    • start

      public void start()
    • stop

      public void stop(boolean clearQueue)
    • isRunning

      public boolean isRunning()
    • getJdaStatus

      public net.dv8tion.jda.api.JDA.Status getJdaStatus()
    • mentionAccountOwner

      public static String mentionAccountOwner()
    • mentionRole

      public static String mentionRole(String roleId)
    • setBotNickname

      public void setBotNickname(String nick)
    • setBotDescription

      public void setBotDescription(String description)
    • escape

      public static String escape(String message)
    • updatePresence

      public void updatePresence(net.dv8tion.jda.api.OnlineStatus onlineStatus, net.dv8tion.jda.api.entities.Activity activity)
    • validateButtonInteractionEventFromAccountOwner

      public static boolean validateButtonInteractionEventFromAccountOwner(net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event)
    • updateProfileImage

      public void updateProfileImage(byte[] imageBytes)
    • defaultEmbedDecoration

      public void defaultEmbedDecoration(Embed embed)
    • sendEmbedMessageTo

      public void sendEmbedMessageTo(net.dv8tion.jda.api.entities.channel.concrete.TextChannel channel, @Nullable String message, Embed embed)
    • sendEmbedMessage

      public void sendEmbedMessage(Embed embed)
    • sendEmbedMessage

      public void sendEmbedMessage(@Nullable String message, Embed embed)
    • sendRelayEmbedMessage

      public void sendRelayEmbedMessage(Embed embed)
    • sendRelayEmbedMessage

      public void sendRelayEmbedMessage(@Nullable String message, Embed embed)
    • sendMessageTo

      public void sendMessageTo(net.dv8tion.jda.api.entities.channel.concrete.TextChannel channel, String message)
    • sendMessage

      public void sendMessage(String message)
    • sendRelayMessage

      public void sendRelayMessage(String message)
    • sendEmbedMessageWithButtonsTo

      public void sendEmbedMessageWithButtonsTo(net.dv8tion.jda.api.entities.channel.concrete.TextChannel channel, @Nullable String message, Embed embed, List<net.dv8tion.jda.api.components.buttons.Button> buttons, Consumer<net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent> eventConsumer, Duration timeout)
    • sendEmbedMessageWithButtons

      public void sendEmbedMessageWithButtons(@Nullable String message, Embed embed, List<net.dv8tion.jda.api.components.buttons.Button> buttons, Consumer<net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent> eventConsumer, Duration timeout)
    • sendEmbedMessageWithButtons

      public void sendEmbedMessageWithButtons(Embed embed, List<net.dv8tion.jda.api.components.buttons.Button> buttons, Consumer<net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent> mapper, Duration timeout)