This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
discord-dart/README.md

27 lines
761 B
Markdown
Raw Normal View History

2023-07-24 18:20:51 +02:00
# discord.dart
2023-07-31 13:28:57 +02:00
[![Pub](https://img.shields.io/pub/v/tn_discord?color=red&logo=dart)](https://github.com/ThunderNetworkRaD/discord.dart)
2023-07-24 18:20:51 +02:00
This package is work in progress.
2023-07-24 16:04:12 +02:00
2023-07-24 18:20:51 +02:00
## Webhooks
2023-07-31 13:24:04 +02:00
### Initializations
2023-07-24 16:04:12 +02:00
```dart
2023-07-24 18:20:51 +02:00
import 'package:tn_discord/tn_discord.dart';
main() {
2023-07-31 13:24:04 +02:00
const webhook = WebookClient(/*Webhook Options*/);
2023-07-24 18:20:51 +02:00
}
2023-07-24 16:04:12 +02:00
```
2023-07-24 18:20:51 +02:00
### Webhook Options
- url: String
- id: String
- token: String
url overrides id and token
2023-08-04 19:19:21 +02:00
## Credits
We took inspiration from [discord.js](https://github.com/discordjs/discord.js) and [Grapes-discord.grapes](https://github.com/BlackdestinyXX/Grapes-discord.grapes).
### Packages
- [http](https://pub.dev/packages/http) by dart.dev (BSD-3-Clause)
- [events-emitter](https://pub.dev/packages/events_emitter) by drafakiller.com (MIT)