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.httppython3 -m pip install discord.httppip3 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",
sync=True # Optional, defaults to False
)
@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
- discord.http Bot example
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discord_http-3.0.1.tar.gz.
File metadata
- Download URL: discord_http-3.0.1.tar.gz
- Upload date:
- Size: 167.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51085cdffc7aecd47329444ec6c7b38d898813364751ae949c6cea01e4493d4f
|
|
| MD5 |
4f3714c12873e34264eafd2c6b9eddec
|
|
| BLAKE2b-256 |
e08e1f51945bfcd2dd6634d60e391da413509dd43c5f16eb6ffdc07a42ddb5b6
|
File details
Details for the file discord_http-3.0.1-py3-none-any.whl.
File metadata
- Download URL: discord_http-3.0.1-py3-none-any.whl
- Upload date:
- Size: 188.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e711d8add7344b149771d93ed2953f5d29282e378c9f32775913636ae54296f
|
|
| MD5 |
823d38c13901405565e4ee37883fdc52
|
|
| BLAKE2b-256 |
1a3930970baf68116ef1107f6b065c0cc210182fcde8769870ae74938eafe0aa
|