Skip to content

AWeirdDev/dischook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

dischook

Welcome To The Official dischook Docs!

We've updated the latest version of dischook.

Getting Started

Installing:

pip install git+https://github.com/AWeirdScratcher/dischook

Simple Discord Webhook

Send a message with username "Happy Bot":

from dischook import Webhook
wh = Webhook("your discord webhook URL")
wh.send("Hello World!", username="Happy Bot", avatar_url="Insert Avatar URL here") # sends a message

success


Sending Embeds:

from dischook import Webhook, Embed
wh = Webhook("your discord webhook URL")

embed = Embed(title="Great Embed", description="Great description (maybe)", color=0x0995ec) # color should use hex
embed2 = Embed(title="Another Embed Appears!")
wh.send("Hello again!", username="Happy Bot", embeds=[embed, embed2])

image

Find more examples here, including how to send components using webhooks.


About

Send webhook messages easily

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages