Control your discord webhooks on a nice way.
Project description
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
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
dishook-1.0.4.tar.gz
(2.1 kB
view details)
File details
Details for the file dishook-1.0.4.tar.gz
.
File metadata
- Download URL: dishook-1.0.4.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14e4fd0b10375a3e0e3cb62b8958de75dae5296ebe3123bb9e28e961ee0248a1 |
|
MD5 | 46eaa9d9e4d8482304a2423807a4bfbc |
|
BLAKE2b-256 | dd7d660a233a8e45f8b3ff64af2c1ef152ae573c5e9fe327aec66b39098a6756 |