fix(GuildChannel): only fetch invites for the specific channel (#6132)

This commit is contained in:
eeehh
2021-07-19 04:16:48 +10:00
committed by GitHub
parent f293132345
commit c40c0f934a
2 changed files with 3 additions and 3 deletions

View File

@@ -497,7 +497,7 @@ class GuildChannel extends Channel {
* @returns {Promise<Collection<string, Invite>>}
*/
fetchInvites(cache = true) {
return this.guild.invites.fetch({ channelID: this.id, cache });
return this.guild.invites.fetch({ channelId: this.id, cache });
}
/**