Class Bot
java.lang.Object
org.deltava.discord.Bot
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDisconnects the Bot from the Discord API.(package private) static org.javacord.api.entity.channel.ServerTextChannel(package private) static org.javacord.api.entity.permission.Role(package private) static Connection(package private) static ContentFilterstatic voidinit()Initializes the Discord bot.static booleanChecks if the Discord bot has been initialized.(package private) static voidstatic voidresetRoles(Pilot p) Removes a Pilot's Discord roles.(package private) static voidsend(ChannelName c, String msg) (package private) static voidsend(ChannelName c, org.javacord.api.entity.message.embed.EmbedBuilder b)
-
Method Details
-
init
public static void init()Initializes the Discord bot. -
disconnect
public static void disconnect()Disconnects the Bot from the Discord API. -
findChannel
-
send
-
send
-
findRole
-
getConnection
- Throws:
org.gvagroup.pool.ConnectionPoolException
-
release
-
getFilter
-
isInitialized
public static boolean isInitialized()Checks if the Discord bot has been initialized.- Returns:
- TRUE if initialized and connected to the Discord server, otherwise FALSE
-
resetRoles
-