Class Bot
java.lang.Object
org.deltava.discord.Bot
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Disconnects 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 ContentFilter
static void
init()
Initializes the Discord bot.static boolean
Checks if the Discord bot has been initialized.(package private) static void
static void
resetRoles
(Pilot p) Removes a Pilot's Discord roles.(package private) static void
send
(ChannelName c, String msg) (package private) static void
send
(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
-