refactor(Managers): rename add to _add (#6060)

This commit is contained in:
1Computer1
2021-07-08 06:34:45 -04:00
committed by GitHub
parent 28b5ffb4d6
commit 9cd5e7ed61
72 changed files with 157 additions and 159 deletions

View File

@@ -229,7 +229,7 @@ class GuildManager extends CachedManager {
const timeout = this.client.setTimeout(() => {
this.client.removeListener(Events.GUILD_CREATE, handleGuild);
this.client.decrementMaxListeners();
resolve(this.client.guilds.add(data));
resolve(this.client.guilds._add(data));
}, 10000);
return undefined;
}, reject),
@@ -265,7 +265,7 @@ class GuildManager extends CachedManager {
}
const data = await this.client.api.guilds(id).get({ query: { with_counts: true } });
return this.add(data, options.cache);
return this._add(data, options.cache);
}
const data = await this.client.api.users('@me').guilds.get({ query: options });