Skip to content

Resolving author color #29

@tylergeorges

Description

@tylergeorges

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions