Skip to main content

Python library that handles interactions from Discord POST requests.

Project description

discord.http

Python library that handles interactions from Discord POST requests.

Installing

You need Python >=3.11 to use this library.

Install by using pip install discord.http in the terminal. If pip does not work, there are other ways to install as well, most commonly:

  • python -m pip install discord.http
  • python3 -m pip install discord.http
  • pip3 install discord.http

Quick example

from discord_http import Context, Client

client = Client(
    token="Your bot token here",
    application_id="Bot application ID",
    public_key="Bot public key",
    sync=True
)

@client.command()
async def ping(ctx: Context):
    """ A simple ping command """
    return ctx.response.send_message("Pong!")

client.start()

Need further help on how to make Discord API able to send requests to your bot? Check out the documentation for more detailed information.

Resources

Acknowledgements

This library was inspired by discord.py, developed by Rapptz. We would like to express our gratitude for their amazing work, which has served as a foundation for this project.

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

discord.http-1.1.8.tar.gz (76.0 kB view details)

Uploaded Source

Built Distribution

discord.http-1.1.8-py3-none-any.whl (89.7 kB view details)

Uploaded Python 3

File details

Details for the file discord.http-1.1.8.tar.gz.

File metadata

  • Download URL: discord.http-1.1.8.tar.gz
  • Upload date:
  • Size: 76.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for discord.http-1.1.8.tar.gz
Algorithm Hash digest
SHA256 f624ff471afd811dd139e111176087c74723d5f4183f21b11b53ba0a69bb11ba
MD5 8dc09826bf3d12f2aa2601a686c39b7c
BLAKE2b-256 20a415eaf7104b5d8f7b5e51b4b8b7b9a0a197b1807842a5d777cd1ea2d67d86

See more details on using hashes here.

File details

Details for the file discord.http-1.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for discord.http-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 fd8d4bb4d37020297e37e4fb578d828668b43f81187c71b82c1d46fc45a256ef
MD5 2a40d38c61307af915bdd8cbff64b28e
BLAKE2b-256 175acad20f8bb18a930f0e86e2e63b9e47c367dde9587d13387a4060d2506687

See more details on using hashes here.

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