We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5887b8 commit e473c6fCopy full SHA for e473c6f
src/Discord/Http.php
@@ -535,13 +535,14 @@ protected function checkInteractionQueue(): void
535
536
/**
537
* Checks if the request is for an interaction endpoint.
538
+ *
539
+ * @link https://discord.com/developers/docs/interactions/receiving-and-responding#endpoints
540
*
541
* @param Request $request
542
* @return bool
543
*/
544
public static function isInteractionEndpoint(Request $request): bool
545
{
- // Adjust this check if you support more interaction endpoints
546
$endpoint = (string) $request->getUrl();
547
return strpos($endpoint, '/interactions') === 0;
548
}
0 commit comments