mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Add invite.delete()
This commit is contained in:
@@ -92,6 +92,14 @@ class Invite {
|
||||
*/
|
||||
this.channels = this.client.channels.get(data.channel.id) || new PartialGuildChannel(this.client, data.channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Deletes this invite
|
||||
* @returns {Promise<Invite, Error>}
|
||||
*/
|
||||
delete() {
|
||||
return this.client.rest.methods.deleteInvite(this);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Invite;
|
||||
|
||||
Reference in New Issue
Block a user