Package org.prithvidiamond1.Commands
Class PrefixCommand
java.lang.Object
org.prithvidiamond1.Commands.PrefixCommand
- All Implemented Interfaces:
Command
This class contains the actions of the prefix command
Allows the user to change the guild prefix of the bot within the server
Allows the user to change the guild prefix of the bot within the server
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runCommand
(org.javacord.api.event.interaction.SlashCommandCreateEvent event) the slash version of the prefix commandvoid
runCommand
(org.javacord.api.event.message.MessageCreateEvent event) the guild version of the prefix command
-
Constructor Details
-
PrefixCommand
public PrefixCommand()
-
-
Method Details
-
runCommand
public void runCommand(org.javacord.api.event.message.MessageCreateEvent event) the guild version of the prefix command- Specified by:
runCommand
in interfaceCommand
- Parameters:
event
- the guild command trigger event
-
runCommand
public void runCommand(org.javacord.api.event.interaction.SlashCommandCreateEvent event) the slash version of the prefix command- Specified by:
runCommand
in interfaceCommand
- Parameters:
event
- the slash command trigger event
-