From c0a02c5d7252aa6ee4199d0bef2a9fe3bdb7c92c Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Fri, 17 Feb 2023 12:36:27 -0700 Subject: [PATCH] utility.banner: fix missed request handler call --- src/modules/utility.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/utility.js b/src/modules/utility.js index 6281789..bcfe85c 100644 --- a/src/modules/utility.js +++ b/src/modules/utility.js @@ -247,10 +247,11 @@ banner.callback = async function (msg, line, [user], {server, guild}) { } } - const userObj = await hf.bot.rest.authRequest({ - method: "GET", - path: "/users/" + id, - }); + const userObj = await hf.bot.requestHandler.request( + "GET", + "/users/" + id, + true + ); if (!userObj.banner) return "This user does not have a banner.";