Skip to main content

A Python library API for the Discord.

Project description

Discord server invite PyPI version info PyPI supported Python versions

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.

Project details


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 hashes)

Uploaded Source

Built Distribution

gatepoint-0.3-py3-none-any.whl (17.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page