Package de.presti.ree6.commands.impl.mod
Class Import
java.lang.Object
de.presti.ree6.commands.impl.mod.Import
- All Implemented Interfaces:
ICommand
A class used to import data from another Bot.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]getAlias()Aliases of the current Command.net.dv8tion.jda.api.interactions.commands.build.CommandDataA CommandData implementation for JDAs SlashCommand Interaction Implementation.voidimportFromAmari(CommandEvent commandEvent) Sends a request to an API to get the data from Amari.voidimportFromMee6(CommandEvent commandEvent) Sends a request to an API to get the data from Mee6.voidonPerform(CommandEvent commandEvent) Will be fired when the Command is called.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.presti.ree6.commands.interfaces.ICommand
onASyncPerform
-
Constructor Details
-
Import
public Import()
-
-
Method Details
-
onPerform
Description copied from interface:ICommandWill be fired when the Command is called. -
importFromMee6
Sends a request to an API to get the data from Mee6.- Parameters:
commandEvent- The CommandEvent.
-
importFromAmari
Sends a request to an API to get the data from Amari.- Parameters:
commandEvent- The CommandEvent.
-
getCommandData
public net.dv8tion.jda.api.interactions.commands.build.CommandData getCommandData()Description copied from interface:ICommandA CommandData implementation for JDAs SlashCommand Interaction Implementation.- Specified by:
getCommandDatain interfaceICommand- Returns:
- the created CommandData.
-
getAlias
Description copied from interface:ICommandAliases of the current Command.
-