Skip to content
This repository has been archived by the owner on Sep 2, 2024. It is now read-only.

Commit

Permalink
Change null checking system
Browse files Browse the repository at this point in the history
  • Loading branch information
CmdrNorthpaw committed Aug 6, 2021
1 parent 4f9d67d commit b57928c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update-commit.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runBlocking {
channel.getMessage(Snowflake(872557344029020190)).edit {
this.content = ""

if (embeds?.isEmpty() == true) embed {
if (embeds.isNullOrEmpty()) embed {
field(repoName) { "Latest commit: `$commitHash" }
color = Color(0xFF0000)
} else embeds?.get(0)?.apply {
Expand Down

0 comments on commit b57928c

Please sign in to comment.