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.0.2.tar.gz (69.4 kB view details)

Uploaded Source

Built Distribution

discord.http-1.0.2-py3-none-any.whl (82.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: discord.http-1.0.2.tar.gz
  • Upload date:
  • Size: 69.4 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.0.2.tar.gz
Algorithm Hash digest
SHA256 362d0f47d71a9f4ca99a7119cd82a07770260119d32feba534d0e02eca2e077f
MD5 b12ed10c9c9eeb79644efcad4dfde2d2
BLAKE2b-256 252c84fdd308ba8a1f66f8acdb9dff3debfeea7e9a1867491cc52173474eb10b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: discord.http-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 82.6 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-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 003bd3ef495cea6e998eb5726ca61251db962ccb578b3802de8212965834bacc
MD5 7abc97a228581099094b795b68f92b63
BLAKE2b-256 54662e72dfadfd667f604bdf1bc442d4a14069b3b3ef54ee84f9adb320a0d07a

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