This commit is contained in:
Andras Bacsai
2023-06-21 10:48:43 +02:00
parent cfc2405596
commit d0af38fb14
6 changed files with 41 additions and 32 deletions

View File

@@ -29,7 +29,8 @@ class SendMessageToDiscordJob implements ShouldQueue
public function __construct(
public string $text,
public string $webhookUrl
) {}
) {
}
/**
* Execute the job.
@@ -39,7 +40,7 @@ class SendMessageToDiscordJob implements ShouldQueue
$payload = [
'content' => $this->text,
];
ray($payload);
Http::post($this->webhookUrl, $payload);
}
}