Class Rule34

java.lang.Object
de.presti.ree6.commands.impl.nsfw.Rule34
All Implemented Interfaces:
ICommand

public class Rule34 extends Object implements ICommand
A command to show NSFW-Image from rule34.xxx.
  • Constructor Details

    • Rule34

      public Rule34()
  • 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.
    • sendMessage

      public void sendMessage(CommandEvent commandEvent)
      Actual part of command handling.
      Parameters:
      commandEvent - the CommandEvent.
    • sendImage

      public void sendImage(CommandEvent commandEvent, net.dv8tion.jda.api.entities.Message message, String tags)
      Method called to send the Image.
      Parameters:
      commandEvent - the CommandEvent.
      message - the Message.
      tags - the Tags.
    • 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.