diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 22:34:43 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 22:34:43 +1000 |
commit | 8be7bef2a6cb8c8e4e1d8ddb67609879b00fbb39 (patch) | |
tree | f85b2df28d56bff05453521490dd96895eae8e6c | |
parent | Merge branch 'fix/sendMemberInProfile' into slowcord (diff) | |
parent | Don't send @everyone role (diff) | |
download | server-8be7bef2a6cb8c8e4e1d8ddb67609879b00fbb39.tar.xz |
Merge branch 'fix/sendMemberInProfile' into slowcord
-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; |