userinfo: copypaste moment
This commit is contained in:
parent
6717e96dfe
commit
43133afb20
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ userinfo.callback = async function (msg, line) {
|
||||||
|
|
||||||
let user;
|
let user;
|
||||||
try {
|
try {
|
||||||
user = await hf.bot.requestHandler.request("GET", APIEndpoints.USER(id), false);
|
user = await hf.bot.requestHandler.request("GET", APIEndpoints.USER(id), true);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err.code == 10013) {
|
if (err.code == 10013) {
|
||||||
return "User not found.";
|
return "User not found.";
|
||||||
|
|
Loading…
Reference in a new issue