The only way to get the renderer to resolve the authors roles/nick color is by having to provide a 'joined_at' property on the author and then after that you have to provide a 'user' object which is just the author object
This seems like the culprit
|
const isGuildMember = "joined_at" in author; |
|
const user = isGuildMember ? author.user : author; |
|
const displayName = isGuildMember |
|
? author.nick ?? getDisplayName(author.user) |
|
: getDisplayName(author); |
|
|
|
const dominantRoleIconRole = useMemo(() => { |
|
if (!isGuildMember || !resolveRole) return null; |
|
|
The only way to get the renderer to resolve the authors roles/nick color is by having to provide a 'joined_at' property on the author and then after that you have to provide a 'user' object which is just the author object
This seems like the culprit
message-renderer/src/Message/MessageAuthor.tsx
Lines 27 to 35 in e99b55c