Update module.js

This commit is contained in:
Rodrigo Emanuel
2025-06-18 15:32:21 -03:00
committed by GitHub
parent 46c76aac5a
commit 3c95ac2361

View File

@@ -100,7 +100,7 @@ async function twitchChatMessage(data) {
message: {
username: userID,
color,
displayName: userName,
displayName: fullUserName,
message : text,
firstMessage,
isReply,
@@ -142,18 +142,18 @@ async function twitchChatMessage(data) {
}
}
let fullUserName = userName;
let userPronouns = await getUserPronouns('twitch', data.message.username);
let userName = fullUserName;
if (showTwitchPronouns == true) {
fullUserName = userName + userPronouns;
let userPronouns = await getUserPronouns('twitch', data.message.username);
userName = userPronouns + fullUserName;
}
const messageData = {
classes: classes.join(' '),
avatar,
badges,
fullUserName,
userName,
color,
message,
shared: sharedChat,