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