From c9e4562fd58999452829501a3410da2b1709342f Mon Sep 17 00:00:00 2001 From: Almeida Date: Tue, 12 Apr 2022 16:08:57 +0100 Subject: [PATCH] fix(GuildChannelManager): `delete` method accessing wrong id (#7771) --- src/managers/GuildChannelManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/managers/GuildChannelManager.js b/src/managers/GuildChannelManager.js index 75eebde0d9af..93c6e6d859f0 100644 --- a/src/managers/GuildChannelManager.js +++ b/src/managers/GuildChannelManager.js @@ -435,7 +435,7 @@ class GuildChannelManager extends CachedManager { async delete(channel, reason) { const id = this.resolveId(channel); if (!id) throw new TypeError('INVALID_TYPE', 'channel', 'GuildChannelResolvable'); - await this.client.api.channels(this.id).delete({ reason }); + await this.client.api.channels(id).delete({ reason }); } }