logs
node_modules
.bin
ansi-regex
ansi-styles
array-find-index
async
buffers
builtin-modules
camelcase
camelcase-keys
chalk
combined-stream
component-emitter
console-stamp
cookiejar
core-util-is
currently-unhandled
date-format
dateformat
debug
decamelize
delayed-stream
discordie
deps
examples
lib
.npmignore
LICENSE
changelog.md
package.json
readme.md
double-ended-queue
ebml
error-ex
escape-string-regexp
extend
find-up
form-data
formidable
get-stdin
graceful-fs
has-ansi
hosted-git-info
indent-string
inherits
is-arrayish
is-builtin-module
is-finite
is-utf8
isarray
load-json-file
log4js
loud-rejection
map-obj
meow
merge
methods
mime
mime-db
mime-types
minimist
mkdirp
moment
moment-timezone
ms
normalize-package-data
number-is-nan
object-assign
options
pako
parse-json
path-exists
path-type
pify
pinkie
pinkie-promise
qs
read-pkg
read-pkg-up
readable-stream
redent
reduce-component
repeating
requireindex
semver
signal-exit
spdx-correct
spdx-expression-parse
spdx-license-ids
streamroller
string_decoder
strip-ansi
strip-bom
strip-indent
superagent
supports-color
trim-newlines
tweetnacl
ultron
validate-npm-package-license
ws
LICENSE
README.md
bot.js
config.json
config.json.example
package.json
Discordie
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.
Fully Implemented
- 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
Documentation
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
Example
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");
});
Related
Library comparison: https://discordapi.com/unofficial/comparison.html
.NET: RogueException/Discord.Net || Luigifan/DiscordSharp || robinhood128/DiscordUnity
Node.js: izy521/discord.io || hydrabolt/discord.js || abalabahaha/eris
Python: Rapptz/discord.py
Ruby: meew0/discordrb
Rust: SpaceManiac/discord-rs
PHP: teamreflex/DiscordPHP || Cleanse/discord-hypertext
Java: austinv11/Discord4J || DV8FromTheWorld/JDA || BtoBastian/Javacord