A Node.js module providing a set of interfaces to interact with Discord API.
Requires at least Node.js 4.0.0.
No native modules required to work with audio. Choose from precompiled (default) or node-opus
(optional).
Join #node_discordie in Discord API.
- Messaging
- Role and channel permission management API
- Member management API (kicking, banning, etc.)
- Direct messages
- Voice encoding, sending, decoding and receiving
(audio streaming example:
examples/encoderstream.js
) - Guild (server) and channel management API
- Local user profile (username change, statuses, avatars)
- Multiserver voice support
http://qeled.github.io/discordie/
Mirrors inline documentation in files:
lib/interfaces/*.js
lib/models/*.js
lib/voice/*.js
lib/Constants.js
lib/index.js
var Discordie = require("discordie");
var Events = Discordie.Events;
var client = new Discordie();
client.connect({ token: "" });
client.Dispatcher.on(Events.GATEWAY_READY, e => {
console.log("Connected as: " + client.User.username);
});
client.Dispatcher.on(Events.MESSAGE_CREATE, e => {
if (e.message.content == "ping")
e.message.channel.sendMessage("pong");
});
.NET: RogueException/Discord.Net || Luigifan/DiscordSharp
Node.js: izy521/discord.io || hydrabolt/discord.js
Python: Rapptz/discord.py
Ruby: meew0/discordrb
Go: bwmarrin/discordgo || gdraynz/go-discord || Xackery/discord
Rust: SpaceManiac/discord-rs
PHP: teamreflex/DiscordPHP || Cleanse/discord-hypertext
Scala: eaceaser/discord-akka
Java: austinv11/Discord4J || DV8FromTheWorld/JDA