Log outfit deletion

This commit is contained in:
Salmonllama 2020-07-27 20:22:04 -04:00
parent 35c370777a
commit 54674c25a0

View File

@ -74,6 +74,15 @@ public class RemoveOutfitCommand extends Command {
ctx.reply(response); ctx.reply(response);
// TODO: Log the action in FSBot-Log // TODO: Log the action in FSBot-Log
EmbedBuilder log = new EmbedBuilder()
.setTitle("Outfit Marked as Deleted")
.setThumbnail(outfit.getLink())
.addField("Deleted By:", ctx.getAuthor().getDiscriminatedName());
ctx.getApi().getServerTextChannelById(BotConfig.OUTFIT_LOG).ifPresent(chnl -> {
chnl.sendMessage(log);
});
} else if (event.getEmoji().equalsEmoji(EmojiParser.parseToUnicode(":octagonal_sign:"))) { } else if (event.getEmoji().equalsEmoji(EmojiParser.parseToUnicode(":octagonal_sign:"))) {
// Do nothing // Do nothing
EmbedBuilder response = new EmbedBuilder() EmbedBuilder response = new EmbedBuilder()