use of uwu.narumi.tama.command.CommandException in project TamaBot by Loli-Cafe.
the class EyeFuckCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
checkContext(event.getMember(), event.getTextChannel());
OptionMapping optionMapping = event.getOption("user");
if (optionMapping == null)
throw new CommandException(getUsage());
event.replyEmbeds(execute(String.format("%s eye fucked %s", event.getUser().getAsMention(), optionMapping.getAsUser().getAsMention()))).queue();
}
Aggregations