From 7ae12ab325e2ca1533f0b33af7893a73d746ddec Mon Sep 17 00:00:00 2001 From: Schuyler Cebulskie Date: Sat, 27 Aug 2016 14:28:18 -0400 Subject: [PATCH] Rename client.cacheUser to client.fetchUser (#551) --- src/client/Client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/Client.js b/src/client/Client.js index c9567f3fe..fe1b11cac 100644 --- a/src/client/Client.js +++ b/src/client/Client.js @@ -136,11 +136,11 @@ class Client extends EventEmitter { } /** - * Forces a user to be cached. - * @param {String} id The ID of the user to cache + * Caches a user, or obtains it from the cache if it's already cached + * @param {String} id The ID of the user to obtain * @return {Promise} */ - cacheUser(id) { + fetchUser(id) { if (this.users.has(id)) return Promise.resolve(this.users.get(id)); return this.rest.methods.getUser(id); }