Dishook
Dishook it's a library who lets you control Discord Webhooks via HTTP.
Supports plain text and embeds, Parameters and JSON gives you more control than other libraries.
Dishook it's one of the lasts Discord webhook control library that is mantained today.
How to install
# PIP + GIT:
pip install git+https://github.com/ZSendokame/Dishook
# PIP:
pip install dishook
How to use
After download, here is a brief tutorial.
import dishook
webhook = dishook.Webhook(Webhook URL) # Create a Webhook() object, this class do all the work.
webhook.embed(
description='This is a description',
color=10000,
image={
'url': 'Image URL'
}
)
webhook.add_field(
name='Webhook field',
value='Webhook field description'
)
webhook.send() # Here, you can add the parameters you wan't!. First check that they are valid.
# You also have some values!
webhook.json # In case you have any error, you can check the generated JSON that the library sent.
webhook.response # More descriptive, if there's any error. Do a try-except and check discord's response.
webhook.status # Here is status code, if you search for it. Probably you will get information
Metadata
Release files for dishook 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dishook-1.0.4.tar.gz | 2.1 kB | Without provenance | Details for dishook-1.0.4.tar.gz |
Release files / dishook-1.0.4.tar.gz
| Download URL | dishook-1.0.4.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14e4fd0b10375a3e0e3cb62b8958de75dae5296ebe3123bb9e28e961ee0248a1
|
|
BLAKE2b-256 checksum How to use checksums |
dd7d660a233a8e45f8b3ff64af2c1ef152ae573c5e9fe327aec66b39098a6756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Security for dishook 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.