A Python library API for the Discord.
Project description
An API Client for Discord Interactions written in Python.
Key Features
Modern Python API using FastAPI for Discord.
Optimised to work in serverless environments.
API Client over Real-time connection.
Installing
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 .
Quick Example
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.
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gatepoint-0.3.tar.gz
(17.3 kB
view details)
Built Distribution
gatepoint-0.3-py3-none-any.whl
(17.0 kB
view details)
File details
Details for the file gatepoint-0.3.tar.gz
.
File metadata
- Download URL: gatepoint-0.3.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f362383bd025a7366495dd29f88b766051341b1e3eac1129be233b2e86e60da1 |
|
MD5 | 2feb33e5d5c4e1307fd6ff29e8642f21 |
|
BLAKE2b-256 | d9278a06a83995073bf1aeb1a2a21a8c2df3b61728240f657746d10cac4b5cfa |
File details
Details for the file gatepoint-0.3-py3-none-any.whl
.
File metadata
- Download URL: gatepoint-0.3-py3-none-any.whl
- Upload date:
- Size: 17.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97072f86ab50205d1a0a10496e0b3cf1cd3b6752d5988d30765e80a3d09695b4 |
|
MD5 | 4d116f6d1f39e8ef34d29363b73568be |
|
BLAKE2b-256 | dd30141dbff74e79d7842605d89d68b80e5272ce66dd12267114c77202e73c34 |