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
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
- Documentations
- Discord server
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
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
Built Distribution
File details
Details for the file discord_http-1.3.15.tar.gz
.
File metadata
- Download URL: discord_http-1.3.15.tar.gz
- Upload date:
- Size: 89.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ed3b06c1ab6e922cdb662939144ef9fc281b437d4149e3ec40c322ae73d1200 |
|
MD5 | 170ae0da67077585c4bcb5479f994b67 |
|
BLAKE2b-256 | 3988d0cfccf5c5a8c79ff88461669dca8f0ad526710b9c8925973cb02f866bf7 |
File details
Details for the file discord.http-1.3.15-py3-none-any.whl
.
File metadata
- Download URL: discord.http-1.3.15-py3-none-any.whl
- Upload date:
- Size: 102.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebaf8e53b4d6013a9b211ead4d6480b164e8e0df29cb07ac259c81bdbacc6d1f |
|
MD5 | c821df7301e56f173a6cf1598e8490f3 |
|
BLAKE2b-256 | ad3466430b9d9b6984719a1b779d0e6b67a429887c50d87ab29d1e6fcda3f84b |