use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class CuddleCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
OptionMapping optionMapping = event.getOption("user");
event.replyEmbeds(execute(optionMapping != null ? String.format("%s cuddled %s", event.getUser(), optionMapping.getAsUser().getAsMention()) : (event.getUser().getAsMention() + " wants to be cuddled"))).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class HugCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
OptionMapping optionMapping = event.getOption("user");
event.replyEmbeds(execute(optionMapping != null ? String.format("%s hugged %s", event.getUser(), optionMapping.getAsUser().getAsMention()) : (event.getUser().getAsMention() + " feels lonely and want hug"))).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class KissCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
OptionMapping optionMapping = event.getOption("user");
event.replyEmbeds(execute(optionMapping != null ? String.format("%s kissed %s", event.getUser(), optionMapping.getAsUser().getAsMention()) : (event.getUser().getAsMention() + " expects kiss"))).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class PatCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
OptionMapping optionMapping = event.getOption("user");
event.replyEmbeds(execute(optionMapping != null ? String.format("%s pats %s", event.getUser(), optionMapping.getAsUser().getAsMention()) : (event.getUser().getAsMention() + " expects pat"))).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class LickNipplesCommand 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 licked %s nipples", event.getUser().getAsMention(), optionMapping.getAsUser().getAsMention()))).queue();
}
Aggregations