diff --git a/src/managers/GuildInviteManager.js b/src/managers/GuildInviteManager.js index fb28fdaa957e..1317e9e04658 100644 --- a/src/managers/GuildInviteManager.js +++ b/src/managers/GuildInviteManager.js @@ -146,8 +146,8 @@ class GuildInviteManager extends CachedManager { return data.reduce((col, invite) => col.set(invite.code, this._add(invite, cache)), new Collection()); } - async _fetchChannelMany(channelID, cache) { - const data = await this.client.api.channels(channelID).invites.get(); + async _fetchChannelMany(channelId, cache) { + const data = await this.client.api.channels(channelId).invites.get(); return data.reduce((col, invite) => col.set(invite.code, this._add(invite, cache)), new Collection()); } diff --git a/src/structures/GuildChannel.js b/src/structures/GuildChannel.js index d5150393e55d..acbc267c915f 100644 --- a/src/structures/GuildChannel.js +++ b/src/structures/GuildChannel.js @@ -497,7 +497,7 @@ class GuildChannel extends Channel { * @returns {Promise>} */ fetchInvites(cache = true) { - return this.guild.invites.fetch({ channelID: this.id, cache }); + return this.guild.invites.fetch({ channelId: this.id, cache }); } /**