Class Kick

java.lang.Object
de.presti.ree6.commands.impl.mod.Kick
All Implemented Interfaces:
ICommand

public class Kick extends Object implements ICommand
A command to kick a user from the server.
  • Constructor Details

    • Kick

      public Kick()
  • Method Details

    • onPerform

      public void onPerform(CommandEvent commandEvent)
      Description copied from interface: ICommand
      Will be fired when the Command is called.
      Specified by:
      onPerform in interface ICommand
      Parameters:
      commandEvent - the Event, with every needed data.
    • getCommandData

      public net.dv8tion.jda.api.interactions.commands.build.CommandData getCommandData()
      Description copied from interface: ICommand
      A CommandData implementation for JDAs SlashCommand Interaction Implementation.
      Specified by:
      getCommandData in interface ICommand
      Returns:
      the created CommandData.
    • getAlias

      public String[] getAlias()
      Description copied from interface: ICommand
      Aliases of the current Command.
      Specified by:
      getAlias in interface ICommand
      Returns:
      the Aliases.
    • kickMember

      public void kickMember(net.dv8tion.jda.api.entities.Member member, String reason, CommandEvent commandEvent)
      Kick a specific Member from the Server.
      Parameters:
      member - The Member to kick.
      reason - The reason why the Member is being kicked.
      commandEvent - The CommandEvent.