Skip to content

ZSendokame/Dishook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 maybe updated in some time.

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

About

Discord webhook manipulation from terminal.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages