TypingTweaks: Fix usernames not being colored (#3070)
This commit is contained in:
parent
dcfddcbc21
commit
464c4a9b61
1 changed files with 2 additions and 2 deletions
|
@ -125,7 +125,7 @@ export default definePlugin({
|
||||||
|
|
||||||
buildSeveralUsers,
|
buildSeveralUsers,
|
||||||
|
|
||||||
mutateChildren(props: any, users: User[], children: any) {
|
mutateChildren(guildId: any, users: User[], children: any) {
|
||||||
try {
|
try {
|
||||||
if (!Array.isArray(children)) {
|
if (!Array.isArray(children)) {
|
||||||
return children;
|
return children;
|
||||||
|
@ -135,7 +135,7 @@ export default definePlugin({
|
||||||
|
|
||||||
return children.map(c =>
|
return children.map(c =>
|
||||||
c.type === "strong" || (typeof c !== "string" && !React.isValidElement(c))
|
c.type === "strong" || (typeof c !== "string" && !React.isValidElement(c))
|
||||||
? <TypingUser {...props} user={users[element++]} />
|
? <TypingUser guildId={guildId} user={users[element++]} />
|
||||||
: c
|
: c
|
||||||
);
|
);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in a new issue