Beatrice DellacĂ
3d626bb46f
All checks were successful
continuous-integration/drone/push Build is passing
Having heavy code run in a constructor is bad practice. We made separate methods for command handling.
13 lines
331 B
Java
13 lines
331 B
Java
package wtf.beatrice.hidekobot.commands.slash;
|
|
|
|
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class PingCommand
|
|
{
|
|
public void runSlashCommand(@NotNull SlashCommandInteractionEvent event)
|
|
{
|
|
event.reply("Pong!").queue();
|
|
}
|
|
}
|