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
This post has been closed. You can still view previous posts, but you can't post any new replies.

Add msg.isGM property when catching chat events in API scripts.

1413918892

Edited 1413918935
As the title says, please add an "isGM" property to the msg object, should be true if the sender is a GM, regardless of wether or not he/she is speaking as the gm. I know this can be done with the "IsGM" script, but I think this is elementary enough to be in the main API.
1414553922
The Aaron
Pro
API Scripter
I agree. Even just having the players flagged in the player object, or having a list of GMs in the Campaign object would be something.
This is now on Dev via the new "playerIsGM()" function in the API.
Now live to everyone!