mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Revert "rewrite ratelimiting and api route builder (#1667)"
This reverts commit a2eeafc75d.
This commit is contained in:
@@ -62,7 +62,7 @@ class Channel {
|
||||
* .catch(console.error); // Log error
|
||||
*/
|
||||
delete() {
|
||||
return this.client.api.channels(this.id).delete().then(() => this);
|
||||
return this.client.api.channels[this.id].delete().then(() => this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user