dartcord 0.1.1

  • README.md
  • Installing
  • Versions
  • 66


dartcord is an API wrapper and Dart client for the Discord API.
It makes full use of await/async syntax and asynchronous Future.


Add dartcord to your pubspec:

    dartcord: "^0.1.0"


var client = new dartcord.Client("MyToken");
client.onMessage.listen((e) async {
  var m = e.message;
  if (m.content == "!ping") {
    await m.reply("Pong!");
client.onReady.listen((e) async {
  print("Ready! Logged in as: " + e.client.user.username);

await client.start();


  • ~~Embed support~~ Done
  • Overhaul WebSocket & REST(?) system
  • Add more events
  • Replace sharding system
  • Voice support


Please use async/await syntax and latest Dart conventions. For testing, the following variables must be set: DISCORD_TOKEN (set to your testing bot's token) and TESTING_CHAN_ID (the tests send messages, so pick a channel that the bot has send, edit and manage messages).


dartcord is a fork of Nyx (https://github.com/Hackzzila/nyx)

1. Depend on it

Add this to your package's pubspec.yaml file:

  dartcord: "^0.1.1"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

Alternatively, your editor might support pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:dartcord/dartcord.dart';
Version Uploaded Documentation Archive
0.1.1 Jun 26, 2017 Go to the documentation of dartcord 0.1.1 Download dartcord 0.1.1 archive
0.1.0 Jun 26, 2017 Go to the documentation of dartcord 0.1.0 Download dartcord 0.1.0 archive


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
40 / 100
Code health derived from static analysis. [more]
99 / 100
Reflects how tidy and up-to-date the package is. [more]
80 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: other

Primary library: package:dartcord/dartcord.dart with components: io, mirrors.


  • Maintain CHANGELOG.md.

    Changelog entries help clients to follow the progress in your code.

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use dartcord.dart.


Package Constraint Resolved Available
Direct dependencies
args >=0.13.5 <0.14.0 0.13.7 1.3.0
colorize >=0.1.2 <0.2.0 0.1.2
http_parser >=3.0.2 <4.0.0 3.1.1
intl >=0.14.0 <0.15.0 0.14.0 0.15.2
w_transport >=3.0.0 <4.0.0 3.2.1
Transitive dependencies
browser 0.10.0+2
charcode 1.1.1
collection 1.14.5
fluri 1.2.3
js 0.6.1
logging 0.11.3+1
meta 1.1.2
mime 0.9.6
path 1.5.1
sockjs_client 0.3.2
sockjs_client_wrapper 1.0.2
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
w_common 1.11.1