Skip to content

Commit 7b19538

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 9389156 commit 7b19538

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;
@@ -96,7 +95,7 @@ private Optional<TextChannel> getBoardChannel(JDA jda, long guildId) {
9695
*/
9796
private static MessageCreateAction insertCoolMessage(TextChannel boardChannel,
9897
Message message) {
99-
return boardChannel.sendMessageEmbeds(Collections.singleton(createQuoteEmbed(message)));
98+
return message.forwardTo(boardChannel);
10099
}
101100

102101
/**

0 commit comments

Comments
 (0)