Skip to content

Commit e473c6f

Browse files
committed
Link
1 parent a5887b8 commit e473c6f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Discord/Http.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,13 +535,14 @@ protected function checkInteractionQueue(): void
535535

536536
/**
537537
* Checks if the request is for an interaction endpoint.
538+
*
539+
* @link https://discord.com/developers/docs/interactions/receiving-and-responding#endpoints
538540
*
539541
* @param Request $request
540542
* @return bool
541543
*/
542544
public static function isInteractionEndpoint(Request $request): bool
543545
{
544-
// Adjust this check if you support more interaction endpoints
545546
$endpoint = (string) $request->getUrl();
546547
return strpos($endpoint, '/interactions') === 0;
547548
}

0 commit comments

Comments
 (0)