Attempting getInvites

This commit is contained in:
abalabahaha
2016-01-13 20:32:07 -08:00
parent cffdb5f5f6
commit fc58a0d5cf
4 changed files with 84 additions and 26 deletions

View File

@@ -365,6 +365,12 @@ export default class Client extends EventEmitter {
.then(dataCallback(callback), errorCallback(callback));
}
// def getInvites
getInvites(channel, callback = (/*err, inv*/) => { }) {
return this.internal.getInvites(channel)
.then(dataCallback(callback), errorCallback(callback));
}
// def overwritePermissions
overwritePermissions(channel, role, options = {}, callback = (/*err, {}*/) => { }) {
return this.internal.overwritePermissions(channel, role, options)