use of uwu.narumi.tama.command.CommandException in project TamaBot by Loli-Cafe.
the class GapePussyCommand method compose.
@Override
public void compose(MessageReceivedEvent event, String... args) {
checkContext(event.getMember(), event.getTextChannel());
if (!DiscordHelper.hasMention(event, Message.MentionType.USER))
throw new CommandException(getUsage());
event.getTextChannel().sendMessageEmbeds(execute(String.format("%s gaping %s pussy", event.getAuthor().getAsMention(), DiscordHelper.getMention(event, Message.MentionType.USER).getAsMention()))).queue();
}
use of uwu.narumi.tama.command.CommandException in project TamaBot by Loli-Cafe.
the class HumiliateCommand method compose.
@Override
public void compose(MessageReceivedEvent event, String... args) {
checkContext(event.getMember(), event.getTextChannel());
if (!DiscordHelper.hasMention(event, Message.MentionType.USER))
throw new CommandException(getUsage());
event.getTextChannel().sendMessageEmbeds(execute(String.format("%s humiliates %s", event.getAuthor().getAsMention(), DiscordHelper.getMention(event, Message.MentionType.USER).getAsMention()))).queue();
}
use of uwu.narumi.tama.command.CommandException in project TamaBot by Loli-Cafe.
the class HumiliateCommand 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 humiliates %s", event.getUser().getAsMention(), optionMapping.getAsUser().getAsMention()))).queue();
}
use of uwu.narumi.tama.command.CommandException in project TamaBot by Loli-Cafe.
the class TickleCommand method compose.
@Override
public void compose(SlashCommandInteractionEvent event) {
OptionMapping optionMapping = event.getOption("user");
if (optionMapping == null)
throw new CommandException(getUsage());
event.replyEmbeds(execute(String.format("%s tickles %s", event.getUser().getAsMention(), optionMapping.getAsUser().getAsMention()))).queue();
}
use of uwu.narumi.tama.command.CommandException in project TamaBot by Loli-Cafe.
the class AmputeeCommand method compose.
@Override
public void compose(MessageReceivedEvent event, String... args) {
checkContext(event.getMember(), event.getTextChannel());
if (!DiscordHelper.hasMention(event, Message.MentionType.USER))
throw new CommandException(getUsage());
event.getTextChannel().sendMessageEmbeds(execute(String.format("%s amputated some body parts of %s", event.getAuthor().getAsMention(), DiscordHelper.getMention(event, Message.MentionType.USER).getAsMention()))).queue();
}
Aggregations