Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Chats written with sendChat() are displayed diffently on chat log and chat archive.

I made some API scripts uses sendChat() function. They works fine when it displayed on chat log in campaign window. But in chat archive, avatar and name doesn't show irregulary, so it looks like one person's chat. (in-game chat log / chat archive / HTML code) The code isn't special, so it doesn't seem like there's a problem here. At first, if there is a problem with the code, the same problem should be present in the chatlog. let chat_id; if (!sc_setting.show_player_name) {     let character = findObjs({type:'character',name:msg.who});         if (character.length > 0) {             chat_id = "character|" + character[0].get('_id');         }     } chat_id = chat_id ? chat_id : "player|"+msg.playerid; sendChat(chat_id,"<span style='" + style + "'>"+msg.content.substring(2, msg.content.length)+"</span>",null,{noarchive:false}); This doesn't seem to be the intended behavior. Please check this.
1643175697
Andrew R.
Pro
Sheet Author
You should use the Help Center and Send a request to get Roll20 staff attention and create a ticket for tracking your issue. Here’s mostly community support. 
Andrew R. said: You should use the Help Center and Send a request to get Roll20 staff attention and create a ticket for tracking your issue. Here’s mostly community support.  Thanks for the advice. I sent a request from Help Center.