Too Long; Didn't Read
The official Discord API documentation explains how to interact with Discord’s API. The documentation defines an interaction as “the message that your application receives when a user uses an application command or a message component” The documentation states that there are two mutually exclusive ways to receive these interactions. The first being to connect to a WebSocket gateway, and the second being to create a webhook. To connect to the gateway, you first should send a HTTP GET request to “https://discord.com/api/gateway/bot”