summary refs log tree commit diff
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 22:34:03 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-16 22:34:03 +1000
commitcd8abe68a74bcee38dc7d0e9a420c35ccd52491f (patch)
treeaa146455f960e915afc25149b4bdecd673cb82e8
parentForgot to send roles in guild_member (diff)
downloadserver-cd8abe68a74bcee38dc7d0e9a420c35ccd52491f.tar.xz
Don't send @everyone role
-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;