mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
REST API speed improvement (#1577)
This commit is contained in:
@@ -145,7 +145,7 @@ class Invite {
|
||||
* @returns {Promise<Invite>}
|
||||
*/
|
||||
delete(reason) {
|
||||
return this.client.api.invites(this.code).delete({ reason }).then(() => this);
|
||||
return this.client.api.invites[this.code].delete({ reason }).then(() => this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user