Skip to content

Commit

Permalink
fix(GuildChannelManager): delete method accessing wrong id (discord…
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored and sasial-dev committed Apr 14, 2022
1 parent afdb34d commit fa83190
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 fa83190

Please sign in to comment.