Class DiscordMain

java.lang.Object
de.neo.rankbridge.shared.manager.services.BridgeService
de.neo.rankbridge.discord.DiscordMain

public class DiscordMain
extends BridgeService
The mainclass for the DiscordBot.
Version:
1.0
Author:
Neo8
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private java.util.HashMap<java.lang.String,​MultiVar> codes  
    private net.dv8tion.jda.api.JDA jda  
  • Constructor Summary

    Constructors 
    Constructor Description
    DiscordMain()
    New Instance.
  • Method Summary

    Modifier and Type Method Description
    void addCode​(java.lang.String code, java.lang.Long group, java.util.UUID uuid)
    Adds a Verification Code.
    MultiVar getCode​(java.lang.String code)
    Gets the Values for a Code.
    net.dv8tion.jda.api.JDA getJDA()
    Gets the JDA.
    void removeCode​(java.lang.String code)
    Removes a Code.

    Methods inherited from class de.neo.rankbridge.shared.manager.services.BridgeService

    getExternalService, getServiceName, handleExternal, setExternalService

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • jda

      private net.dv8tion.jda.api.JDA jda
    • codes

      private java.util.HashMap<java.lang.String,​MultiVar> codes
  • Constructor Details

  • Method Details

    • addCode

      public void addCode​(java.lang.String code, java.lang.Long group, java.util.UUID uuid)
      Adds a Verification Code.
      Parameters:
      code - The code to add.
      group - The role to add.
      uuid - The uuid of the Player.
    • getCode

      public MultiVar getCode​(java.lang.String code)
      Gets the Values for a Code.
      Parameters:
      code - The code.
      Returns:
      The MultiVar for the code.
    • removeCode

      public void removeCode​(java.lang.String code)
      Removes a Code.
      Parameters:
      code - The code to remove.
    • getJDA

      public net.dv8tion.jda.api.JDA getJDA()
      Gets the JDA.
      Returns:
      the JDA.