From 17197720b77721bfca9114f8340f662436e4010c Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Sun, 23 Apr 2023 08:18:23 -0600 Subject: [PATCH] Maybe use the cache for the full level API :skull: --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d7914db..1384656 100644 --- a/index.js +++ b/index.js @@ -278,7 +278,7 @@ app.get("/api/levels", async (req, res) => { let output = rows; for (let i = 0; i < output.length; i++) { // Get user info {avatar, tag, etc} - let user = await client.users.fetch(output[i].id); + let user = await client.users.cache.get(output[i].id); output[i].tag = user.tag; output[i].avatar = user.displayAvatarURL({extension: "png", size: 1024}); output[i].banner = user.bannerURL({extension: "png"});