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 447e0c5 + 9b02a4a commit cbbcab6Copy full SHA for cbbcab6
src/Adapter/Discord.php
@@ -15,13 +15,11 @@ public function send(string $number, string $message)
15
{
16
$number = $this->filterNumber($number);
17
18
- $data = json_encode(['content' => "To: $number - Message: $message"]);
+ $data = ['content' => "To: $number - Message: $message"];
19
20
$ch = curl_init($this->url);
21
- curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
22
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
23
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
24
- curl_setopt($ch, CURLOPT_HEADER, array('Content-Type: application/json'));
25
$data = curl_exec($ch);
26
27
if(curl_errno($ch)){
0 commit comments