dartsicord 0.0.6 copy "dartsicord: ^0.0.6" to clipboard
dartsicord: ^0.0.6 copied to clipboard

outdatedDart 1 only

A Discord library for Dart

dartsicord #

This is a basic Dart library intending to provide fundamental functionality to Discord's API. Many features are missing from this library. It is expandable, so I am open to modification.

This library has a relatively good feature base. Most important REST methods are added. It is well organized so modification shouldn't be difficult.

I plan to have all events and most REST methods in by 0.1.0. If and when voice support is added, I will release 1.0.0.

Examples #

A simple ping-pong bot can be located in the example directory, or can be found here.

import "package:dartsicord/dartsicord.dart";

void main() {
	final client = new DiscordClient();

	client.onMessage.listen((event) async {
		if (event.message.content.toLowerCase() == "ping")
			await event.message.reply("pong");
	});

	client.connect("YOUR-TOKEN");
}

Contributing #

Feel free to fork and contribute. Try to keep my style of code, or else I might get mad. That means double quotes and decent organization. I'll still probably fix any consistency issues after you've made a pull request.

0
likes
0
points
85
downloads

Publisher

unverified uploader

Weekly Downloads

A Discord library for Dart

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on dartsicord