An API Client for Discord Interactions written in Python.
- Modern Python API using
FastAPI
for Discord. - Optimised to work in serverless environments.
- API Client over Real-time connection.
Python 3.8 or higher is required
To install the library without full voice support, you can just run the following command:
# Linux/macOS
python3 -m pip install -U gatepoint
# Windows
py -3 -m pip install -U gatepoint
To install the development version, do the following:
$ git clone https://github.com/Senarc-Studios/gatepoint
$ cd gatepoint
$ python3 -m pip install -U .
import gatepoint
InteractionAPI = gatepoint.GatewayClient(
api_version = 11,
secret_key = "SECRET",
public_key = "PUBLIC",
token = "TOKEN"
)
@InteractionAPI.command(name = "ping", description = "Pong!")
async def ping(interaction):
await interaction.reply('pong!')
InteractionAPI.run()
You can find more examples in the examples directory.