File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1111use Psr \Http \Message \ResponseInterface ;
1212use Psr \Http \Message \ServerRequestInterface ;
1313use Psr \Http \Server \RequestHandlerInterface ;
14+ use Throwable ;
1415use UnexpectedValueException ;
1516use wcf \data \discord \bot \DiscordBotList ;
1617use wcf \data \discord \interaction \log \DiscordInteractionLogAction ;
1718use wcf \system \discord \DiscordApi ;
1819use wcf \system \discord \interaction \callback \PingInteractionCallback ;
19- use wcf \system \exception \SystemException ;
2020use wcf \util \JSON ;
2121
2222abstract class AbstractDiscordInteractionAction implements RequestHandlerInterface, IDiscordInteractionAction
@@ -44,7 +44,7 @@ public function handle(ServerRequestInterface $request): ResponseInterface
4444 $ data = [];
4545 try {
4646 $ data = JSON ::decode ($ body , true );
47- } catch (SystemException ) {
47+ } catch (Throwable ) {
4848 throw new BadMethodCallException ('body is not valid json ' );
4949 }
5050
You can’t perform that action at this time.
0 commit comments