fix(GuildChannelManager): delete method accessing wrong id (#7771)

This commit is contained in:
Almeida
2022-04-12 16:08:57 +01:00
committed by GitHub
parent e1cdcfa9a6
commit c9e4562fd5

View File

@@ -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 });
}
}