Class DiscordBot
java.lang.Object
com.zenith.discord.DiscordBot
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddefaultEmbedDecoration(Embed embed) static Stringnet.dv8tion.jda.api.JDA.Statusbooleannet.dv8tion.jda.api.JDAjda()com.github.rfresh2.SimpleEventBusstatic Stringstatic StringmentionRole(String roleId) voidsendEmbedMessage(Embed embed) voidsendEmbedMessage(@Nullable String message, Embed embed) voidsendEmbedMessageTo(net.dv8tion.jda.api.entities.channel.concrete.TextChannel channel, @Nullable String message, Embed embed) voidsendEmbedMessageWithButtons(Embed embed, List<net.dv8tion.jda.api.components.buttons.Button> buttons, Consumer<net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent> mapper, Duration timeout) voidsendEmbedMessageWithButtons(@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) voidsendEmbedMessageWithButtonsTo(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) voidsendMessage(String message) voidsendMessageTo(net.dv8tion.jda.api.entities.channel.concrete.TextChannel channel, String message) voidsendRelayEmbedMessage(Embed embed) voidsendRelayEmbedMessage(@Nullable String message, Embed embed) voidsendRelayMessage(String message) voidsetBotDescription(String description) voidsetBotNickname(String nick) voidstart()voidstop(boolean clearQueue) voidupdatePresence(net.dv8tion.jda.api.OnlineStatus onlineStatus, net.dv8tion.jda.api.entities.Activity activity) voidupdateProfileImage(byte[] imageBytes) static booleanvalidateButtonInteractionEventFromAccountOwner(net.dv8tion.jda.api.events.interaction.component.ButtonInteractionEvent event)
-
Field Details
-
lastRelayMessage
-
-
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
-
mentionRole
-
setBotNickname
-
setBotDescription
-
escape
-
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
-
sendEmbedMessageTo
-
sendEmbedMessage
-
sendEmbedMessage
-
sendRelayEmbedMessage
-
sendRelayEmbedMessage
-
sendMessageTo
public void sendMessageTo(net.dv8tion.jda.api.entities.channel.concrete.TextChannel channel, String message) -
sendMessage
-
sendRelayMessage
-
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
-
sendEmbedMessageWithButtons
-
jda
public net.dv8tion.jda.api.JDA jda() -
jdaEventBus
public com.github.rfresh2.SimpleEventBus jdaEventBus()
-