This commit is contained in:
parent
78d5bd6beb
commit
24bb560d93
@ -1,7 +1,9 @@
|
||||
package wtf.beatrice.hidekobot.commands.slash;
|
||||
|
||||
import net.dv8tion.jda.api.EmbedBuilder;
|
||||
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import wtf.beatrice.hidekobot.Configuration;
|
||||
|
||||
public class HelpCommand
|
||||
{
|
||||
@ -11,6 +13,15 @@ public class HelpCommand
|
||||
// defer reply because replying might take a while
|
||||
event.deferReply().queue();
|
||||
|
||||
event.reply("Pong!").queue();
|
||||
EmbedBuilder embedBuilder = new EmbedBuilder();
|
||||
|
||||
// embed processing
|
||||
{
|
||||
embedBuilder.setColor(Configuration.getBotColor());
|
||||
embedBuilder.setTitle("Help");
|
||||
|
||||
}
|
||||
|
||||
event.getHook().editOriginalEmbeds(embedBuilder.build()).queue();
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@ public class SlashCommandListener extends ListenerAdapter
|
||||
case "clear" -> new ClearChatCommand().runSlashCommand(event);
|
||||
case "coinflip" -> new CoinFlipCommand().runSlashCommand(event);
|
||||
case "die" -> new DieCommand().runSlashCommand(event);
|
||||
case "help" -> new HelpCommand().runSlashCommand(event);
|
||||
case "invite" -> new InviteCommand().runSlashCommand(event);
|
||||
case "ping" -> new PingCommand().runSlashCommand(event);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user