impl a EmbedDescriptionBuilder

This commit is contained in:
Lee
2024-07-02 01:51:13 +01:00
parent 4f975ab07a
commit 317eaaec8a
4 changed files with 62 additions and 29 deletions

View File

@ -58,7 +58,7 @@ public class DiscordMessageService extends ListenerAdapter {
event.getChannel().getId(),
event.getGuild().getId(),
event.getAuthor().getId(),
event.getMessage().getContentRaw(),
event.getMessage().getContentStripped(),
false
));
}
@ -68,10 +68,10 @@ public class DiscordMessageService extends ListenerAdapter {
Optional<DiscordMessage> message = discordMessageRepository.findById(event.getMessageId());
if (message.isPresent()) {
DiscordMessage discordMessage = message.get();
if (discordMessage.getContent().equals(event.getMessage().getContentRaw())) {
if (discordMessage.getContent().equals(event.getMessage().getContentStripped())) {
return;
}
discordMessage.setContent(event.getMessage().getContentRaw());
discordMessage.setContent(event.getMessage().getContentStripped());
discordMessageRepository.save(discordMessage);
}