Package de.neo.rankbridge.discord
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
-
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
-
Field Details
-
Constructor Details
-
DiscordMain
public DiscordMain()New Instance.
-
-
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
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.
-