code: function toChatID(steamID) {
    if (typeof steamID == 'string')
      steamID = SteamID.decode(steamID);
    
    if (steamID.accountType == Steam.EAccountType.Clan) {
      // this is a ClanID - convert to its respective ChatID
      steamID.accountInstance = SteamID.ChatInstanceFlags.Clan;
      steamID.accountType = Steam.EAccountType.Chat;
    }
    
    return steamID.encode();
  }
docs: Private functions