Skip to content

Commit d91a354

Browse files
committed
Somehow managed to delete this important bit for displaying the empty days
This is why you don't code while buzzed
1 parent d4abfcf commit d91a354

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/src/main/kotlin/org/dreamexposure/discal/core/business/EmbedService.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,12 @@ class EmbedService(
280280
// Finish event
281281
content.append("```\n")
282282
}
283+
if (content.isBlank()) {
284+
content.append("```\n")
285+
.append("[ No Upcoming Scheduled Events ]")
286+
.append("\n```")
287+
}
288+
283289
calculatedEmbedCharacterLength += title.length + content.toString().embedFieldSafe().length
284290

285291
// max embed length is 6000 characters, we are going to go a bit under that in just for extra safety

0 commit comments

Comments
 (0)