https://github.com/aweirddev/dischook
Send webhook messages easily
https://github.com/aweirddev/dischook
Last synced: 3 months ago
JSON representation
Send webhook messages easily
- Host: GitHub
- URL: https://github.com/aweirddev/dischook
- Owner: AWeirdDev
- License: mit
- Created: 2022-07-09T10:23:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-09T10:30:41.000Z (almost 4 years ago)
- Last Synced: 2025-12-16T15:33:45.851Z (6 months ago)
- Language: Python
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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":
```py
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
```

***
Sending Embeds:
```py
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])
```

### Find more examples [here](), including how to send **components** using webhooks.
***