Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit 2a331a8

Browse files
committed
alternative attempt
1 parent 891a6de commit 2a331a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Discord/Client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,10 @@ public function handleRequest(ServerRequestInterface $request)
213213
return $this->handleInteraction($interaction)->then(function ($result) {
214214
$this->logger->info('responding to interaction', $result);
215215

216-
$response = new Response(200, ['Content-Type' => 'application/json'], json_encode($result));
217-
$this->logger->info('REPLY:', (array) $response);
216+
//$response = new Response(200, ['Content-Type' => 'application/json'], json_encode($result));
217+
header('Content-Type: application/json');
218+
exit(json_encode($result));
219+
//$this->logger->info('REPLY:', (array) $response);
218220
});
219221
}
220222

0 commit comments

Comments
 (0)