https://github.com/th3shadowbroker/dischook
A basic implementation of discords webhook-api.
https://github.com/th3shadowbroker/dischook
discord java json webhooks
Last synced: 2 months ago
JSON representation
A basic implementation of discords webhook-api.
- Host: GitHub
- URL: https://github.com/th3shadowbroker/dischook
- Owner: Th3Shadowbroker
- License: mit
- Created: 2019-02-13T15:55:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-14T18:06:34.000Z (about 3 years ago)
- Last Synced: 2025-09-03T20:58:22.675Z (10 months ago)
- Topics: discord, java, json, webhooks
- Language: Java
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
## DiscHook
[](https://actions-badge.atrox.dev/Th3Shadowbroker/DiscHook/goto)
[](https://sonar.th3shadowbroker.dev/dashboard?id=io.m4taiori.discord%3Adischook)
DiscHook is a basic implementation of the discord-webhook api. DiscHook uses a really simple
structure and provides basic JSON support ([org.json](https://github.com/stleary/JSON-java)).
I've also implemented basic listener/event support.
[Download latest version](https://m4taiori.io/?download=dischook)
### Example implementation
````java
DiscordWebhook hook = new DiscordWebhook("YOUR WEBHOOKS URL");
DiscordWebhookPacket packet = DiscordWebhookPacket.createNew().setUsername("Someone").setContent("Hello World");
hook.trySendPacket( packet );
````
If you want to learn more about how you can implement DiscHook in your project, checkout the wiki.
### Maven
```xml
th3shadowbroker-releases
https://nexus.m4taiori.io/repository/th3shadowbroker-releases/
io.m4taiori.discord
dischook
1.0.0
```
### Contributing
I made this project in my free time and I don't have the time to maintain it actively. Feel free
to fork this repository and share added features or bug fixes with us through pull-requests.
### License
This project is licensed under the MIT-license.
### Found a bug or one of the four horsemen?
Please use the issue-tool to submit bug-reports or feature requests.
### Contact & support
If you want to support me you can do so through Patreon <3
[
](https://patreon.com/m4taiori)
If you have any questions, problems or something else? Feel free to contact me via social-media.
[Twitter](https://twitter.com/m4taiori)
[M4taiori.io (Email or Discord)](https://m4taiori.io/#contact)