summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 22:34:43 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 22:34:43 +1000
commit8be7bef2a6cb8c8e4e1d8ddb67609879b00fbb39 (patch)
treef85b2df28d56bff05453521490dd96895eae8e6c
parentMerge branch 'fix/sendMemberInProfile' into slowcord (diff)
parentDon't send @everyone role (diff)
downloadserver-8be7bef2a6cb8c8e4e1d8ddb67609879b00fbb39.tar.xz
Merge branch 'fix/sendMemberInProfile' into slowcord
-rw-r--r--api/src/routes/users/#id/profile.ts2
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;