utility.banner: fix missed request handler call
This commit is contained in:
parent
6baba62e1b
commit
c0a02c5d72
1 changed files with 5 additions and 4 deletions
|
@ -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.";
|
||||
|
||||
|
|
Loading…
Reference in a new issue