Skip to main content

Python library that handles interactions from Discord POST requests.

Reason this release was yanked:

Broken build, Context is not working properly

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

Installing beta

Do you live on the edge and want to test before the next version is released? You can install it by using git+https://github.com/AlexFlipnote/discord.http@master instead of discord.http when running pip install.

[!NOTE] It can be unstable and unreliable, so use it at your own risk.

Quick example

from discord_http import Context, Client

client = Client(
    token="Your bot token here"
)

@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-3.1.1.tar.gz (177.8 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-3.1.1-py3-none-any.whl (199.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_http-3.1.1.tar.gz
  • Upload date:
  • Size: 177.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for discord_http-3.1.1.tar.gz
Algorithm Hash digest
SHA256 0db8649df06c94be4a0266f4aea5fef3a33dd52ec2f5795eef69e2c81f4c90d8
MD5 9fb05cb395cd6a1d81e57103e5dd64c2
BLAKE2b-256 66a13c106ab8efee4537063f02b762ca5d250015555f58548cfe558f8c427f27

See more details on using hashes here.

File details

Details for the file discord_http-3.1.1-py3-none-any.whl.

File metadata

  • Download URL: discord_http-3.1.1-py3-none-any.whl
  • Upload date:
  • Size: 199.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for discord_http-3.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb2ab64b8a2df22015c98f4d73e2635410ae6208bb5ec0b211c2cd253be8c8d6
MD5 f11588ab5f0e163fe76ec1912cd436fc
BLAKE2b-256 2c6ed4b241996cb5ed75575c387fc515cefa90e0ea1393db34cfd77569dc969a

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