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

@@ -23,7 +23,7 @@ class ThreadListSyncAction extends Action {
}
const syncedThreads = data.threads.reduce((coll, rawThread) => {
const thread = client.channels.add(rawThread);
const thread = client.channels._add(rawThread);
return coll.set(thread.id, thread);
}, new Collection());
@@ -50,7 +50,7 @@ class ThreadListSyncAction extends Action {
removeStale(channel) {
channel.threads?.cache.forEach(thread => {
if (!thread.archived) {
this.client.channels.remove(thread.id);
this.client.channels._remove(thread.id);
}
});
}