From 1727c62317826436ad92cffafb4c8846ffa72770 Mon Sep 17 00:00:00 2001 From: BuildTools <59115290+BanTheNons@users.noreply.github.com> Date: Thu, 5 Aug 2021 21:00:56 +0300 Subject: [PATCH] Added the bot param --- src/routes/users/#id/profile.ts | 1 + src/routes/users/@me/profile.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/routes/users/#id/profile.ts b/src/routes/users/#id/profile.ts index 6fc8d5e4..516606f3 100644 --- a/src/routes/users/#id/profile.ts +++ b/src/routes/users/#id/profile.ts @@ -17,6 +17,7 @@ router.get("/", async (req: Request, res: Response) => { public_flags: user.public_flags, avatar: user.avatar, bio: req.user_bot ? null : user.bio, + bot: user.bot, } }); }); diff --git a/src/routes/users/@me/profile.ts b/src/routes/users/@me/profile.ts index 353607d4..366eb535 100644 --- a/src/routes/users/@me/profile.ts +++ b/src/routes/users/@me/profile.ts @@ -17,6 +17,7 @@ router.get("/", async (req: Request, res: Response) => { public_flags: user.public_flags, avatar: user.avatar, bio: user.bio, + bot: user.bot, } }); });