mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
Attempting getInvites
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user