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

Commit bb20975

Browse files
committed
fix application id
1 parent 11f9d0e commit bb20975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Discord/Client.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ public function handleRequest(ServerRequestInterface $request)
202202
}
203203

204204
$responseBody = json_decode($request->getBody(), true);
205-
if (! isset($responseBody->application_id)) {
206-
$responseBody->application_id = $this->options['application_id'];
205+
if (! isset($responseBody['application_id'])) {
206+
$responseBody['application_id'] = $this->options['application_id'];
207207
}
208208

209209
$interaction = new Interaction($responseBody, $this->http);

0 commit comments

Comments
 (0)