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

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord_http-3.1.2.tar.gz
  • Upload date:
  • Size: 178.0 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.2.tar.gz
Algorithm Hash digest
SHA256 60fad394c9dbd7aba10daeb0261f668804bebf8f97e76c4087abdfc1570bc4f9
MD5 0e2a1047dfae69c6474c0915af390b03
BLAKE2b-256 e8b8c36f7434ab084f795fb8a58718b419be27a35eabbe59d3bae360e1a15758

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord_http-3.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c06f5a6bd4f108e35a80b1f67a7bb36f5ba7ccbd1e30ca9652650ff29f84d44f
MD5 d5c3592c7fb73d34b23ad8832c82d2a5
BLAKE2b-256 5718cda137c5d885348b3a810d965e9a87f729516a866a34c83714ec3415f542

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