mirror of
https://github.com/discordjs/discord.js.git
synced 2026-06-04 01:50:08 +00: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