diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/MessageReactionListener.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/MessageReactionListener.java index c89bc8f9..c34aa5d5 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/MessageReactionListener.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/MessageReactionListener.java @@ -62,7 +62,7 @@ public class MessageReactionListener extends ListenerAdapter final MessageBuilder archiveMessageBuilder = new MessageBuilder(); archiveMessageBuilder.setContent("Report completed by " + completer.getUser().getAsMention() + " (" + Discord.deformat(completer.getUser().getAsTag() + ")")); archiveMessageBuilder.setAllowedMentions(Collections.emptyList()); - archiveMessageBuilder.setEmbed(embed); + archiveMessageBuilder.setEmbeds(embed); final Message archiveMessage = archiveMessageBuilder.build(); archiveChannel.sendMessage(archiveMessage).complete(); diff --git a/src/main/java/me/totalfreedom/totalfreedommod/discord/command/DiscordCommandManager.java b/src/main/java/me/totalfreedom/totalfreedommod/discord/command/DiscordCommandManager.java index 93f1c60b..55e52ca6 100644 --- a/src/main/java/me/totalfreedom/totalfreedommod/discord/command/DiscordCommandManager.java +++ b/src/main/java/me/totalfreedom/totalfreedommod/discord/command/DiscordCommandManager.java @@ -71,7 +71,7 @@ public class DiscordCommandManager embedBuilder.setTitle("Command error"); embedBuilder.setColor(Color.RED); embedBuilder.setDescription("You don't have permission to execute this command."); - messageBuilder.setEmbed(embedBuilder.build()); + messageBuilder.setEmbeds(embedBuilder.build()); final Message message = messageBuilder.build(); final CompletableFuture futureMessage = channel.sendMessage(message).submit(true);