mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Fix JDA deprecation issue
This commit is contained in:
parent
80f19f0349
commit
8876076a9d
@ -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();
|
||||
|
@ -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<Message> futureMessage = channel.sendMessage(message).submit(true);
|
||||
|
Loading…
Reference in New Issue
Block a user