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.

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.0.tar.gz (180.4 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.0-py3-none-any.whl (201.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_http-3.1.0.tar.gz
  • Upload date:
  • Size: 180.4 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.0.tar.gz
Algorithm Hash digest
SHA256 c1506ed6d9c621d6984e1c58cf9b7afaf9ffe3edce301d50778017b38ba2839a
MD5 6e89476da837a51ef6de52e1913cc2c8
BLAKE2b-256 bc6c384f752cd4f5c0da2665728f7eccbffbe436bda07e0607501c84e2fe0331

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord_http-3.1.0-py3-none-any.whl
  • Upload date:
  • Size: 201.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b4348589b48a46e539f81984960b0eb346a1c1b44b3fdc16bee687888460e8
MD5 8d1bb8eff2d7d59ac3d05ece00e4968f
BLAKE2b-256 3ddff6d4584c012deea78d9ab3a31b6d3074ee50b3cbfade43f6bbef4f2d3aaa

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