Skip to main content

Python library that handles interactions from Discord POST requests.

Reason this release was yanked:

Broken BaseChannel.type on forum channels

Project description

discord.http

Python library that handles interactions from Discord POST requests.

Supported installs

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.

The project is also a fork of joyn-gg/discord.http

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

discord_http-2.0.4.tar.gz (141.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

discord.http-2.0.4-py3-none-any.whl (163.2 kB view details)

Uploaded Python 3

File details

Details for the file discord_http-2.0.4.tar.gz.

File metadata

  • Download URL: discord_http-2.0.4.tar.gz
  • Upload date:
  • Size: 141.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for discord_http-2.0.4.tar.gz
Algorithm Hash digest
SHA256 a28631cf9a370c70289a31c06a2cb495603f13ea198b9de8c777fd3eec8a9c80
MD5 ebec4ce182b006f3748780bd21df473b
BLAKE2b-256 7c86351e04f4f127743e3b3f0f6a493246faa52989f233cf738975bca3b7fd64

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord.http-2.0.4-py3-none-any.whl
  • Upload date:
  • Size: 163.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for discord.http-2.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 43655d32f4d628cfcffe58a021cb6f525ebd5bd6042156345fa3b9c330672e10
MD5 c426a2257eec69d276c3660803092962
BLAKE2b-256 57114bb0b9ba324eb28e0faf867dc28729514d3dcab9f76a9fea8b7362550e82

See more details on using hashes here.

Supported by

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