Skip to content

Commit bbde421

Browse files
committed
feat(cool-message): forward messages instead of using embed
For this feature, the version of JDA had to be bumped to 5.1.2
1 parent 6fb7720 commit bbde421

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

application/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies {
4646
implementation project(':utils')
4747
implementation project(':formatter')
4848

49-
implementation 'net.dv8tion:JDA:5.1.0'
49+
implementation 'net.dv8tion:JDA:5.1.2'
5050

5151
implementation 'org.apache.logging.log4j:log4j-core:2.23.0'
5252
runtimeOnly 'org.apache.logging.log4j:log4j-slf4j18-impl:2.18.0'

application/src/main/java/org/togetherjava/tjbot/features/basic/CoolMessagesBoardManager.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.togetherjava.tjbot.features.MessageReceiverAdapter;
1919

2020
import java.awt.Color;
21-
import java.util.Collections;
2221
import java.util.Optional;
2322
import java.util.function.Predicate;
2423
import java.util.regex.Pattern;
@@ -102,7 +101,7 @@ private Optional<TextChannel> getBoardChannel(JDA jda, long guildId) {
102101
*/
103102
private static MessageCreateAction insertCoolMessage(TextChannel boardChannel,
104103
Message message) {
105-
return boardChannel.sendMessageEmbeds(Collections.singleton(createQuoteEmbed(message)));
104+
return message.forwardTo(boardChannel);
106105
}
107106

108107
/**

0 commit comments

Comments
 (0)