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
-
Method Summary
Modifier and TypeMethodDescriptionString[]
getAlias()
Aliases of the current Command.net.dv8tion.jda.api.interactions.commands.build.CommandData
A CommandData implementation for JDAs SlashCommand Interaction Implementation.default void
onASyncPerform
(CommandEvent commandEvent) 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 logThe Logger for this class.
-
-
Method Details
-
onASyncPerform
Will be fired when the Command is called.- Parameters:
commandEvent
- the Event, with every needed data.
-
onPerform
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.
-