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

View file

@ -247,10 +247,11 @@ banner.callback = async function (msg, line, [user], {server, guild}) {
} }
} }
const userObj = await hf.bot.rest.authRequest({ const userObj = await hf.bot.requestHandler.request(
method: "GET", "GET",
path: "/users/" + id, "/users/" + id,
}); true
);
if (!userObj.banner) return "This user does not have a banner."; if (!userObj.banner) return "This user does not have a banner.";