Skip to content

Commit 9f95d84

Browse files
committed
Tweak pattern
1 parent 33e55f0 commit 9f95d84

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Discord/HttpTrait.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,10 @@ protected function checkunboundQueue(): void
415415
*/
416416
public static function isUnboundEndpoint(Request $request): bool
417417
{
418+
$url = $request->getUrl();
418419
return
419-
(strpos($request->getUrl(), '/interactions') !== false && strpos($request->getUrl(), '/callback') !== false)
420-
|| (strpos($request->getUrl(), '/webhooks') !== false);
420+
(strpos($url, '/interactions') !== false && strpos($url, '/callback') !== false)
421+
|| strpos($url, '/webhooks') === 0;
421422
}
422423

423424
/**

0 commit comments

Comments
 (0)