Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving author color #29

Open
tylergeorges opened this issue Sep 1, 2023 · 0 comments
Open

Resolving author color #29

tylergeorges opened this issue Sep 1, 2023 · 0 comments

Comments

@tylergeorges
Copy link
Contributor

tylergeorges commented Sep 1, 2023

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;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant