File tree Expand file tree Collapse file tree
core/src/main/kotlin/org/dreamexposure/discal/core/business Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ class RsvpService(
2323 private val rsvpCache : RsvpCache ,
2424 private val embedService : EmbedService ,
2525 private val calendarService : CalendarService ,
26+ private val staticMessageService : StaticMessageService ,
2627 private val beanFactory : BeanFactory ,
2728) {
2829 private val discordClient: DiscordClient
@@ -64,6 +65,9 @@ class RsvpService(
6465 ).map(::Rsvp ).awaitSingle()
6566
6667 rsvpCache.put(rsvp.guildId, rsvp.eventId, saved)
68+
69+ staticMessageService.updateStaticMessages(rsvp.guildId, rsvp.calendarNumber)
70+
6771 return saved
6872 }
6973
@@ -141,6 +145,7 @@ class RsvpService(
141145
142146
143147 // Do Discord actions
148+ staticMessageService.updateStaticMessages(new.guildId, new.calendarNumber)
144149
145150 // Do role removal
146151 removeOldRoleFrom.forEach { userId ->
You can’t perform that action at this time.
0 commit comments