diff options
Diffstat (limited to 'api/src/routes/users/#id/profile.ts')
-rw-r--r-- | api/src/routes/users/#id/profile.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/routes/users/#id/profile.ts b/api/src/routes/users/#id/profile.ts index e0d89ef3..f8eee876 100644 --- a/api/src/routes/users/#id/profile.ts +++ b/api/src/routes/users/#id/profile.ts @@ -74,7 +74,7 @@ router.get("/", route({ test: { response: { body: "UserProfileResponse" } } }), mute: guild_member.mute, nick: guild_member.nick, premium_since: guild_member.premium_since, - roles: guild_member.roles.map(x => x.id), + roles: guild_member.roles.map(x => x.id).filter(id => id != guild_id), user: userDto } : undefined; |