Package org.prithvidiamond1.Commands
Interface Command
- All Known Implementing Classes:
GayrateCommand
,HelpCommand
,PingCommand
,PlayCommand
,PrefixCommand
,SimprateCommand
public interface Command
Interface that can be used create commands that have both guild and slash command functionalities
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runCommand
(org.javacord.api.event.interaction.SlashCommandCreateEvent event) Method that runs the slash version of the commandvoid
runCommand
(org.javacord.api.event.message.MessageCreateEvent event) Method that runs the guild version of the command
-
Method Details
-
runCommand
void runCommand(org.javacord.api.event.message.MessageCreateEvent event) Method that runs the guild version of the command- Parameters:
event
- the guild command trigger event
-
runCommand
void runCommand(org.javacord.api.event.interaction.SlashCommandCreateEvent event) Method that runs the slash version of the command- Parameters:
event
- the slash command trigger event
-