function firstGM() {
      let i;

      for (i = 0; i < game.users.entities.length; i++) {
        if (
          game.users.entities[i].data.role >= 4 &&
          game.users.entities[i].active
        )
          return game.users.entities[i].data._id;
      }
      ui.notifications.error("No GM available for Dancing Lights!");
    }
/*
     * Returns the first GM id.
     */
Returns the first GM id.
Returns the first GM id .
function firstGM() {
      let i;
      for (i = 0; i < game.users.entities.length; i++) {
        if (
          game.users.entities[i].data.role >= 4 &&
          game.users.entities[i].active
        )
          return game.users.entities[i].data._id;
      }
      ui.notifications.error("No GM available for Dancing Lights!");
    }
function firstGM ( ) { let i ; for ( i = 0 ; i < game . users . entities . length ; i ++ ) { if ( game . users . entities [ i ] . data . role >= 4 && game . users . entities [ i ] . active ) return game . users . entities [ i ] . data . _id ; } ui . notifications . error ( "No GM available for Dancing Lights!" ) ; }
Returns the first GM id.
Returns the first GM id .