mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
Rebuilt lib for dev and getInvite
This commit is contained in:
@@ -337,6 +337,12 @@ export default class Client extends EventEmitter {
|
||||
.then(dataCallback(callback), errorCallback(callback));
|
||||
}
|
||||
|
||||
// def getInvite
|
||||
getInvite(invite, callback = (/*err, inv*/) => { }) {
|
||||
return this.internal.getInvite(invite)
|
||||
.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