Skip to content

Commit bd179ca

Browse files
committed
Only interactions callback bypasses global limit
1 parent 1502496 commit bd179ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Discord/HttpTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,8 @@ protected function checkInteractionQueue(): void
415415
*/
416416
public static function isInteractionEndpoint(Request $request): bool
417417
{
418-
return strpos($request->getUrl(), '/interactions') === 0;
418+
$url = $request->getUrl();
419+
return strpos($url, '/interactions') === 0 || strpos($url, '/callback') === 0;
419420
}
420421

421422
/**

0 commit comments

Comments
 (0)