dartcord 0.1.1

  • README.md
  • Installing
  • Versions
  • 59


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)

Use this package as a library

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

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages 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


We analyzed this package on Jun 20, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
31 / 100
Code health derived from static analysis. [more]
97 / 100
Reflects how tidy and up-to-date the package is. [more]
70 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, other

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


  • Maintain CHANGELOG.md.

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

  • Homepage does not exists.

    We were unable to access https://github.com/jacksonrakena/dartcord at the time of the analysis.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 2 errors 28 hints.

    Strong-mode analysis of lib/src/internal/_DiscordSocket.dart failed with the following error:

    line: 45 col: 25
    The argument type '(String) → Future<Null>' can't be assigned to the parameter type '(dynamic) → void'.

    Strong-mode analysis of lib/src/objects/VoiceConnection.dart failed with the following error:

    line: 22 col: 25
    The argument type '(String) → Future<Null>' can't be assigned to the parameter type '(dynamic) → void'.

    Similar analysis of the following files failed:

    • lib/src/Client.dart (hint)
    • lib/src/discord_browser.dart (hint)
    • lib/src/errors/ClientNotReadyError.dart (hint)
    • lib/src/events/GuildCreateEvent.dart (hint)
    • lib/src/internal/_Constants.dart (hint)
    • lib/src/internal/_RestClient.dart (hint)
    • lib/src/internal/_SnowflakeEntity.dart (hint)
    • lib/src/internal/_SocketManager.dart (hint)
    • lib/src/internal/logging/DiscordLogging.dart (hint)
    • lib/src/objects/Attachment.dart (hint)
    • lib/src/objects/DMChannel.dart (hint)
    • lib/src/objects/EmbedBuilder.dart (hint)
    • lib/src/objects/GroupDMChannel.dart (hint)
    • lib/src/objects/Guild.dart (hint)
    • lib/src/objects/GuildAuditLogsContainer.dart (hint)
    • lib/src/objects/InviteGuild.dart (hint)
    • lib/src/objects/Message.dart (hint)
    • lib/src/objects/TextChannel.dart (hint)
    • lib/src/objects/User.dart (hint)
    • lib/src/objects/VoiceChannel.dart (hint)
    • lib/src/objects/Webhook.dart (hint)
  • 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.4.3
colorize >=0.1.2 <0.2.0 0.1.2
http_parser >=3.0.2 <4.0.0 3.1.2
intl >=0.14.0 <0.15.0 0.14.0 0.15.6
w_transport >=3.0.0 <4.0.0 3.2.5
Transitive dependencies
browser 0.10.0+3
charcode 1.1.1
collection 1.14.10
dart2_constant 1.0.1+dart2
fluri 1.2.4
js 0.6.1
logging 0.11.3+1
meta 1.1.5
mime 0.9.6+1
path 1.6.1
sockjs_client 0.3.3
sockjs_client_wrapper 1.0.3
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
w_common 1.13.0