Class Manga

java.lang.Object
de.presti.ree6.commands.impl.fun.Manga
All Implemented Interfaces:
ICommand

public class Manga extends Object implements ICommand
A command used to search for mangas!
  • Constructor Details

    • Manga

      public Manga()
  • 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.
    • sendManga

      public void sendManga(CommandEvent commandEvent, net.dv8tion.jda.api.entities.Message message, String query)
      Send the anime to the channel.
      Parameters:
      commandEvent - the CommandEvent.
      message - the Message.
      query - the query.
    • tryResolvingGenres

      public String tryResolvingGenres(com.google.gson.JsonObject data)
      Try to resolve the genres.
      Parameters:
      data - the data.
      Returns:
      the genres.
    • 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.