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

I just can't get sendChat() to work?

1367804874
Konrad J.
Pro
API Scripter
I don't know why, its got to be something stupid I'm doing! I get this error... TypeError: Cannot call method 'replace' of undefined at Object.d20.textchat.doChatInput ( and here is the actual command its running...             sendChat("+D1 to Handling"); Thanks for all your help, I'm having some fun getting back into programming!!!  Although this javascript is killing me with all their ({[, etc. :)
sendChat("", "/desc +D1 to Handling");
1367812226
Konrad J.
Pro
API Scripter
Bingo, thanks!