Package org.prithvidiamond1.Commands
Class PingCommand
java.lang.Object
org.prithvidiamond1.Commands.PingCommand
- All Implemented Interfaces:
Command
This class contains the actions of the ping command
Pings the bot for a greeting!
Pings the bot for a greeting!
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
runCommand
(org.javacord.api.event.interaction.SlashCommandCreateEvent event) the slash version of the ping commandvoid
runCommand
(org.javacord.api.event.message.MessageCreateEvent event) the guild version of the ping command
-
Constructor Details
-
PingCommand
public PingCommand()
-
-
Method Details
-
runCommand
public void runCommand(org.javacord.api.event.message.MessageCreateEvent event) the guild version of the ping 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 ping command- Specified by:
runCommand
in interfaceCommand
- Parameters:
event
- the slash command trigger event
-