Skip to content

Commit c9e4562

Browse files
authoredApr 12, 2022
fix(GuildChannelManager): delete method accessing wrong id (#7771)
1 parent e1cdcfa commit c9e4562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/managers/GuildChannelManager.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class GuildChannelManager extends CachedManager {
435435
async delete(channel, reason) {
436436
const id = this.resolveId(channel);
437437
if (!id) throw new TypeError('INVALID_TYPE', 'channel', 'GuildChannelResolvable');
438-
await this.client.api.channels(this.id).delete({ reason });
438+
await this.client.api.channels(id).delete({ reason });
439439
}
440440
}
441441

0 commit comments

Comments
 (0)
Please sign in to comment.