use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class PetPlayCommand 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 ordered %s", event.getUser().getAsMention(), optionMapping.getAsUser().getAsMention()))).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class PissCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
checkContext(event.getMember(), event.getTextChannel());
OptionMapping optionMapping = event.getOption("user");
event.replyEmbeds(execute(optionMapping != null ? String.format("%s pissed on %s", event.getUser(), optionMapping.getAsUser().getAsMention()) : (event.getUser().getAsMention() + " pissed yourself"), optionMapping != null)).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class RapeCommand 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 forcefully raped %s", event.getUser().getAsMention(), optionMapping.getAsUser().getAsMention()))).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class RimJobCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
checkContext(event.getMember(), event.getTextChannel());
OptionMapping optionMapping = event.getOption("user");
event.replyEmbeds(execute(optionMapping != null ? String.format("%s rimmed %s", event.getUser(), optionMapping.getAsUser().getAsMention()) : (event.getUser().getAsMention() + " sat on cactus"))).queue();
}
use of net.dv8tion.jda.api.interactions.commands.OptionMapping in project TamaBot by Loli-Cafe.
the class SexCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
checkContext(event.getMember(), event.getTextChannel());
OptionMapping optionMapping = event.getOption("user");
event.replyEmbeds(execute(optionMapping != null ? String.format("%s and %s had sex", event.getUser(), optionMapping.getAsUser().getAsMention()) : (event.getUser().getAsMention() + " wants to have sex"))).queue();
}
Aggregations