use of gartham.c10ver.response.actions.ActionMessage in project c10ver by Gartham.
the class PlayerController method info.
private DetailedActionReaction info(DetailedMenuMessage<DetailedActionReaction, DetailedActionButton> source) {
return new DetailedActionReaction("\u2139", "Info", "Check battle queue or enemy stats.", t -> {
var dam = new DetailedMenuMessage<>(new ActionMessage<>());
DetailedActionReaction battleQueue = new DetailedActionReaction("Battle Queue", "Check the time until each creature's turn.", DetailedActionReaction.actionMessageAction(dam, t1 -> channel.sendMessage("Battle Queue:").setEmbeds(GarmonUtils.printBattleQueue(battle).build()).queue()));
DetailedActionReaction back = new DetailedActionReaction("\u2B05", "Back", "Go back to attack menu.", DetailedActionReaction.actionMessageAction(source));
dam.getReactions().add(battleQueue);
dam.getReactions().add(back);
dam.send(clover, channel, player);
});
}
Aggregations