diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 22:34:03 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-16 22:34:03 +1000 |
commit | cd8abe68a74bcee38dc7d0e9a420c35ccd52491f (patch) | |
tree | aa146455f960e915afc25149b4bdecd673cb82e8 | |
parent | Forgot to send roles in guild_member (diff) | |
download | server-cd8abe68a74bcee38dc7d0e9a420c35ccd52491f.tar.xz |
Don't send @everyone role
-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; |