Class Bot

java.lang.Object
org.deltava.discord.Bot

public class Bot extends Object
The Discord Bot.
Since:
11.0
Version:
11.4
Author:
danielw, luke
  • Method Details

    • init

      public static void init()
      Initializes the Discord bot.
    • disconnect

      public static void disconnect()
      Disconnects the Bot from the Discord API.
    • findChannel

      static org.javacord.api.entity.channel.ServerTextChannel findChannel(ChannelName c)
    • send

      static void send(ChannelName c, String msg)
    • send

      static void send(ChannelName c, org.javacord.api.entity.message.embed.EmbedBuilder b)
    • findRole

      static org.javacord.api.entity.permission.Role findRole(String roleName)
    • getConnection

      static Connection getConnection() throws org.gvagroup.pool.ConnectionPoolException
      Throws:
      org.gvagroup.pool.ConnectionPoolException
    • release

      static void release(Connection c)
    • getFilter

      static ContentFilter 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

      public static void resetRoles(Pilot p)
      Removes a Pilot's Discord roles.
      Parameters:
      p - the Pilot