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.
2 parents 23529c0 + 9e8b621 commit 42febf0Copy full SHA for 42febf0
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