Skip to content

Commit

Permalink
feat(cool-message): forward messages instead of using embed
Browse files Browse the repository at this point in the history
For this feature, the version of JDA had to be bumped to 5.1.2
  • Loading branch information
christolis committed Oct 29, 2024
1 parent 9389156 commit 7b19538
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -96,7 +95,7 @@ private Optional<TextChannel> getBoardChannel(JDA jda, long guildId) {
*/
private static MessageCreateAction insertCoolMessage(TextChannel boardChannel,
Message message) {
return boardChannel.sendMessageEmbeds(Collections.singleton(createQuoteEmbed(message)));
return message.forwardTo(boardChannel);
}

/**
Expand Down

0 comments on commit 7b19538

Please sign in to comment.