Skip to content

Senarc-Studios/GatePoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GatePoint

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.

Links

About

FastAPI Library for Discord Gateway.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages