Package de.presti.ree6.commands.impl.mod
Class Ban
java.lang.Object
de.presti.ree6.commands.impl.mod.Ban
- All Implemented Interfaces:
ICommand
A command to ban a user from the server.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbanMember(net.dv8tion.jda.api.entities.Member member, String reason, int deleteTime, CommandEvent commandEvent) Ban a specific user from the server.String[]getAlias()Aliases of the current Command.net.dv8tion.jda.api.interactions.commands.build.CommandDataA CommandData implementation for JDAs SlashCommand Interaction Implementation.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
-
Ban
public Ban()
-
-
Method Details
-
onPerform
Description copied from interface:ICommandWill be fired when the Command is called. -
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. -
banMember
public void banMember(net.dv8tion.jda.api.entities.Member member, String reason, int deleteTime, CommandEvent commandEvent) Ban a specific user from the server.- Parameters:
member- The user to ban.reason- The reason why the user should be banned.deleteTime- The deletion time in days.commandEvent- The command event.
-