Skip to main content

Controll your discord webhooks on a nice way.

Project description

Dishook

Dishook it's a library who lets you controll Discord Webhooks via HTTP.
Supports plain text and embeds, Parameters and JSON gives you more controll than other libraries.
Dishook it's one of the lasts Discord webhook controll library that is mantained today.

How to install

pip install git+https://github.com/ZSendokame/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.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 (Here is the error.).
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.0.tar.gz (2.0 kB view hashes)

Uploaded Source

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