Package io.github.daflamingfox
Interface CmdExecutor
-
public interface CmdExecutorThe executor for commands, has a method for text, and one for slash.- Author:
- Jeffrey Morris
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidslashExecute(org.javacord.api.interaction.SlashCommandInteraction sci)Executes the slash command.voidtextExecute(org.javacord.api.event.message.MessageCreateEvent event, String[] args)Executes the text command.
-
-
-
Method Detail
-
textExecute
void textExecute(org.javacord.api.event.message.MessageCreateEvent event, String[] args)Executes the text command.- Parameters:
event- The event for the command.args- The arguments for the command.
-
slashExecute
void slashExecute(org.javacord.api.interaction.SlashCommandInteraction sci)
Executes the slash command.- Parameters:
sci- The interaction for the command.
-
-