utility.banner: fix missed request handler call

This commit is contained in:
Cynthia Foxwell 2023-02-17 12:36:27 -07:00
parent 6baba62e1b
commit c0a02c5d72
1 changed files with 5 additions and 4 deletions

View File

@ -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.";