Installation
Requirements
- Python 3.13+
- A Discord application with an interactions endpoint URL configured in the Developer Portal
Install
This pulls in FastAPI, Starlette, httpx, pydantic, and PyNaCl, loguru as dependencies. No other packages are required.
Running locally
For local development you can take advantage of the fastapi cli
Discord requires a publicly reachable HTTPS URL to deliver interaction webhooks. For local development, ngrok or Cloudflare Tunnel are both straightforward options:
Paste the resulting https:// URL into the Interactions Endpoint URL field in your Discord application's settings, appending your interactions path (default: /interactions):
Discord will send a PING to verify the endpoint before saving. Once it confirms, you're ready to receive interactions.