dscord 0.0.4
discord client library
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
dscord
dscord is a Discord client library written in D-lang thats focused on performance at high user and guild counts.
Compiling
To compile dscord, you need any modern D-lang compiler (I recommend the latest stable version of dmd).
Example
import dscord.client;
// First, setup an API client with our bot auth token
auto client = new Client("MY_BOT_AUTH_TOKEN");
// Bind a state update, this will inform us when we've recieved all guilds
client.state.onStartupComplete = {
writefln("Startup Complete");
};
// Bind a gateway event, this will tell us when we've gotten (and processed) the ready payload
client.gw.onEvent!Ready((Ready r) {
writeln("Ready Complete");
});
// Next, open up our gateway connection
client.gw.start();
- Registered by Andrei Z
- 0.0.4 released 8 years ago
- b1naryth1ef/dscord
- github.com/b1naryth1ef/dscord
- zlib
- Authors:
- Dependencies:
- vibe-d, fast, shaker, dcad
- Versions:
-
1.0.0-beta.1 2019-May-06 0.0.11 2017-Sep-11 0.0.10 2017-Mar-17 0.0.9 2016-Sep-16 0.0.8 2016-Aug-17 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
693 downloads total
-
- Score:
- 2.1
- Short URL:
- dscord.dub.pm