feat: add methods to managers for v13 (#7611)

This commit is contained in:
Rodry
2022-04-09 05:35:17 -04:00
committed by GitHub
parent 8e7d15e49d
commit 9f09702854
11 changed files with 361 additions and 179 deletions

View File

@@ -535,7 +535,7 @@ class ThreadChannel extends Channel {
* .catch(console.error);
*/
async delete(reason) {
await this.client.api.channels(this.id).delete({ reason });
await this.guild.channels.delete(this.id, reason);
return this;
}