Skip to content

Commit

Permalink
Fix MessageCouldNotBeSent exception
Browse files Browse the repository at this point in the history
fix #29
  • Loading branch information
sibkod authored Jan 10, 2023
1 parent 953feb6 commit 4ac90d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DiscordLogger/Discord/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function toArray(): array
'timestamp' => $this->timestamp,
],
static function ($value) {
return $value !== null && $value !== [];
return $value !== null && $value !== "" && $value !== [];
});
}

Expand Down

0 comments on commit 4ac90d5

Please sign in to comment.