diff --git a/application/build.gradle b/application/build.gradle index 08282a6890..bbd4f804d4 100644 --- a/application/build.gradle +++ b/application/build.gradle @@ -46,7 +46,7 @@ dependencies { implementation project(':utils') implementation project(':formatter') - implementation 'net.dv8tion:JDA:5.1.0' + implementation 'net.dv8tion:JDA:5.1.2' implementation 'org.apache.logging.log4j:log4j-core:2.23.0' runtimeOnly 'org.apache.logging.log4j:log4j-slf4j18-impl:2.18.0' diff --git a/application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java b/application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java index 6ca62f8748..fe7157afed 100644 --- a/application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java +++ b/application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java @@ -18,7 +18,6 @@ import org.togetherjava.tjbot.features.MessageReceiverAdapter; import java.awt.Color; -import java.util.Collections; import java.util.Optional; import java.util.function.Predicate; import java.util.regex.Pattern; @@ -102,7 +101,7 @@ private Optional getBoardChannel(JDA jda, long guildId) { */ private static MessageCreateAction insertCoolMessage(TextChannel boardChannel, Message message) { - return boardChannel.sendMessageEmbeds(Collections.singleton(createQuoteEmbed(message))); + return message.forwardTo(boardChannel); } /**