forked from Fascinated/Bat
impl a EmbedDescriptionBuilder
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user