(author: DiscordAuthor, accountId: string)
| 135 | } |
| 136 | |
| 137 | const parseAuthor = (author: DiscordAuthor, accountId: string) => { |
| 138 | return { |
| 139 | externalUserId: author.id, |
| 140 | accountsId: accountId, |
| 141 | displayName: author.username, |
| 142 | anonymousAlias: generateRandomWordSlug(), |
| 143 | isAdmin: false, |
| 144 | isBot: author.bot || false, |
| 145 | ...(author.avatar && { |
| 146 | profileImageUrl: buildUserAvatar({ |
| 147 | userId: author.id, |
| 148 | avatarId: author.avatar, |
| 149 | }), |
| 150 | }), |
| 151 | }; |
| 152 | }; |
no test coverage detected