We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 348d5c0 commit 9e8b621Copy full SHA for 9e8b621
src/DiscordWebhook/Webhook.php
@@ -65,7 +65,7 @@ public function send(): bool
65
/** @var ArrayCollection|int[] $responseCodes */
66
$responseCodes = new ArrayCollection();
67
68
- if ($this->getFile() !== null && $this->embeds->count() > 0) {
+ if (isset($this->file) && $this->embeds->count() > 0) {
69
throw new RuntimeException('Cannot use embeds and files in the same Webhook.');
70
}
71
0 commit comments