In this section of their docs https://discord.com/developers/docs/interactions/slash-commands#receiving-an-interaction it says:
– Your endpoint must be prepared to ACK a PING message.- Your endpoint must be set up to properly handle signature headers–more on that in Security and Authorization.
I’m not too sure how to go about doing that in php. I plan to receive and handle interactions via webhook but I need to pass their URL verification first.I’m currently stuck with this errors: interactions_endpoint_url: The specified interactions endpoint url could not be verified.
My code running php 5.6, going by discord examples and using elliptic-php https://pastebin.com/a4bfcT6K. I’d much rather not use any library at all if possible. Any help on the code is appreciated thx.
TIL I learned discord allows developers to hook slash commands.
Time to write another discord library to do this.
It’s very new