Skip to content

Commit 3b5ff18

Browse files
committed
Faster static function
1 parent b3207b5 commit 3b5ff18

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Discord/Http.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,7 @@ protected function checkInteractionQueue(): void
543543
*/
544544
public static function isInteractionEndpoint(Request $request): bool
545545
{
546-
$endpoint = (string) $request->getUrl();
547-
return strpos($endpoint, '/interactions') === 0;
546+
return strpos($request->getUrl(), '/interactions') === 0;
548547
}
549548

550549
/**

0 commit comments

Comments
 (0)