Skip to content

Commit

Permalink
fix(GuildChannelManager): delete method accessing wrong id (#7771)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Apr 12, 2022
1 parent e1cdcfa commit c9e4562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/managers/GuildChannelManager.js
Expand Up @@ -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 });
}
}

Expand Down

0 comments on commit c9e4562

Please sign in to comment.