Interface ICommand

All Known Implementing Classes:
Addon, Anime, Announcement, Ban, Birthday, Blacklist, CatImage, Clear, ClearData, Clearqueue, Credits, Cringe, Disconnect, DogImage, EmbedSender, FunFact, Game, Giveaway, Help, HornyJail, Hug, Import, Info, Infractions, InstagramNotifier, Invite, Kick, Kiss, Leaderboards, Level, LevelRole, Loop, Lyrics, Manga, MemeImage, Money, Monkey, MusicPanel, Mute, News, NSFW, Optout, Pause, PickUpLine, Ping, Play, Prefix, RandomAnswer, Reactions, Record, RedditNotifier, Resume, RSSNotifier, Rule34, Schedule, Seek, Server, Setup, ShibaImage, Shuffle, Skip, Slap, SongInfo, SongList, Stats, Steal, Stop, StreamActionCommand, Suggestion, Support, Test, Ticket, TikTokNotifier, TwitchNotifier, Twitter, TwitterNotifier, Unban, Unmute, Volume, Waifu, Warn, Webinterface, Work, YouTubeNotifier

public interface ICommand
An Interface class, used to make it easier for the creation of Commands.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.slf4j.Logger
    The Logger for this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Aliases of the current Command.
    net.dv8tion.jda.api.interactions.commands.build.CommandData
    A CommandData implementation for JDAs SlashCommand Interaction Implementation.
    default void
    Will be fired when the Command is called.
    void
    onPerform(CommandEvent commandEvent)
    Will be fired when the Command is called.
  • Field Details

    • log

      static final org.slf4j.Logger log
      The Logger for this class.
  • Method Details

    • onASyncPerform

      default void onASyncPerform(CommandEvent commandEvent)
      Will be fired when the Command is called.
      Parameters:
      commandEvent - the Event, with every needed data.
    • onPerform

      void onPerform(CommandEvent commandEvent)
      Will be fired when the Command is called.
      Parameters:
      commandEvent - the Event, with every needed data.
    • getCommandData

      net.dv8tion.jda.api.interactions.commands.build.CommandData getCommandData()
      A CommandData implementation for JDAs SlashCommand Interaction Implementation.
      Returns:
      the created CommandData.
    • getAlias

      String[] getAlias()
      Aliases of the current Command.
      Returns:
      the Aliases.