Skip to content

Commit

Permalink
I appear to have forgotten a critical part of an announcement
Browse files Browse the repository at this point in the history
I forgot the mentions
  • Loading branch information
NovaFox161 committed Mar 24, 2024
1 parent 4dfc11e commit d983bb3
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -14,6 +14,7 @@ import org.dreamexposure.discal.core.database.DatabaseManager
import org.dreamexposure.discal.core.entities.Calendar
import org.dreamexposure.discal.core.entities.Event
import org.dreamexposure.discal.core.extensions.discord4j.getCalendar
import org.dreamexposure.discal.core.extensions.messageContentSafe
import org.dreamexposure.discal.core.logger.LOGGER
import org.dreamexposure.discal.core.`object`.new.Announcement
import org.dreamexposure.discal.core.`object`.new.AnnouncementWizardState
Expand Down Expand Up @@ -159,6 +160,7 @@ class AnnouncementService(
val embed = embedService.determineAnnouncementEmbed(announcement, event, settings)

val message = channel.createMessage(MessageCreateRequest.builder()
.content(announcement.subscribers.buildMentions().messageContentSafe())
.addEmbed(embed.asRequest())
.build()
).awaitSingle()
Expand Down

0 comments on commit d983bb3

Please sign in to comment.