Welcome To The Official dischook Docs!
We've updated the latest version of dischook.
Installing:
pip install git+https://github.com/AWeirdScratcher/dischook
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 messageSending 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])
