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

Commit 91170d2

Browse files
committed
try fix 2
1 parent 2a331a8 commit 91170d2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Discord/Client.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,8 @@ 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));
217216
header('Content-Type: application/json');
218-
exit(json_encode($result));
219-
//$this->logger->info('REPLY:', (array) $response);
217+
return new Response(Response::STATUS_OK, ['Content-Type' => 'application/json'], json_encode($result));
220218
});
221219
}
222220

0 commit comments

Comments
 (0)