mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Attempting getInvites
This commit is contained in:
@@ -441,6 +441,14 @@ var Client = (function (_EventEmitter) {
|
||||
return this.internal.getInvite(invite).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def getInvites
|
||||
|
||||
Client.prototype.getInvites = function getInvites(channel) {
|
||||
var callback = arguments.length <= 1 || arguments[1] === undefined ? function () /*err, inv*/{} : arguments[1];
|
||||
|
||||
return this.internal.getInvites(channel).then(dataCallback(callback), errorCallback(callback));
|
||||
};
|
||||
|
||||
// def overwritePermissions
|
||||
|
||||
Client.prototype.overwritePermissions = function overwritePermissions(channel, role) {
|
||||
|
||||
Reference in New Issue
Block a user